
   THIS IS THE DOCUMENTATION OF OLD PRINT PREVIEW COMPONENT
   WHICH IS ALOS AVAILABLE IN THIS VERSION
******************Old Component Document**********************************
  This is a simple preview componenent that show the visual basic
capacity for the system programing and how easy it is. This component
can be enhanced to the full professional version also.


Properties



 PageCount : Integer  ( Read Only ) Will gives the total pages

 Fontname  : String ( write Only ) will set the new font and subsiquent
          output will be on that pages will be of new font.

 FontSize  : Integer ( write Only ) will set the new fontsize and subsiquent
          output will be on that pages will be of new fontsize.


 FontBold   : Boolean ( write only ) will chage the boldness

 FontItalic : Boolean( write only)

 FontUnderline : Boolean ( write only )


 SetColor      :  Long ( write only ) // some problem with naming of the
                  property ( JAVABeans style )


 FillStyle     : Integer ( write only )



Methods :


Refresh  :   Empty all the pages and create one newpage with defaults
          subsiquent output will be on buffer of new first page

NewPage  :   Add page to the page buffer with deafault settings
          subsiquent output will be on buffer of this new page


Show     : Show interacrtive form which display the all generated pages
          buffers.

TextOut ( arow, acol As Double, Atext As String)
      Write to the page buffer the text with current font , color etc
         at row and col ( cordinates are in Inch )


Lineto(arow As Double, acol As Double)
     Draw line in the page buffer from current row & col to new arow, acol
     ( cordinates are in Inch )



Moveto(arow As Double, acol As Double)
     Set new current row & col     ( cordinates are in Inch )


Rect(At, Al, Ab, Ar As Double)
          Draw rectangle : ( cordinates are in Inch )




SetPenWidth(awidth As Integer)
         Set new pen width for the output .( Better to convert to property )



************** End Of OLD COMPONENT DocuMent



New Print Preview Component


This Component has Only One  more feature and that is
Saving report to file and then you can retrive latter on or
immidiatly after saving.(As in the example)

As Visual Basic DOes not has the Proper File IO
FileRepo.Dll is supplied containing ComFileRepo Activex Object
Which is being used for low level file I/O

SO PLEASE REGISTER THIS         FIELREPO.DLL

Documentation of COMFILEREPO
Property FileName as String  : Read & Write  File to be Writen or Read
Property Pos as Long  Readonly   : Position of the file Pointer
Property Size as Long  Readonly   : File Size

Sub Open : Open the file . Before that FileName Property to be set.
Sub  NewFile : Create New file . Before that FileName Property to be set.
Sub Close : Close the File .
Sub Seek( Along as Long ) . Seek the file pointer.
Function ReadInt as Integer  . Read Integer from the file.
Function ReadLong as Long . Read Long from the file
Function ReadStr as Stirng . ReadString from the File
Function ReadDouble as Double . Read Double from the File.
Sub  WrtieInt(Aint as Integer ) . Write  Integer
Sub  WriteLong(Along as Long )  Write Long
Sub  WriteStr(Astr As String ) Write String
Sub  WriteDOuble(Ado As double ) Wrtie Double.


Documentation of the FILERP Control
More or less Documentation is same as the old component.
But changed feature is here.

Sub RepoStart(Afile as String)  => Start writing Reports. Create new file
as per parameters.


Sub RepoEnd . FLush Last page to the file and close the report file.

Sub NewPage  : Flush Current Page to file

Properties

 Fontname  : String ( write Only ) will set the new font and subsiquent
          output will be on that pages will be of new font.

 FontSize  : Integer ( write Only ) will set the new fontsize and subsiquent
          output will be on that pages will be of new fontsize.


 FontBold   : Boolean ( write only ) will chage the boldness

 FontItalic : Boolean( write only)

 FontUnderline : Boolean ( write only )


 SetColor      :  Long ( write only ) // some problem with naming of the
                  property ( JAVABeans style )


 FillStyle     : Integer ( write only )



Methods :


TextOut ( arow, acol As Double, Atext As String)
      Write to the page buffer the text with current font , color etc
         at row and col ( cordinates are in Inch )


Lineto(arow As Double, acol As Double)
     Draw line in the page buffer from current row & col to new arow, acol
     ( cordinates are in Inch )



Moveto(arow As Double, acol As Double)
     Set new current row & col     ( cordinates are in Inch )


Rect(At, Al, Ab, Ar As Double)
          Draw rectangle : ( cordinates are in Inch )




SetPenWidth(awidth As Integer)
         Set new pen width for the output .( Better to convert to property )


********* For Opening and reading saved report .


Sub OpenRepo(Afile as String ) . Open Saved report and displayed it.

Sub CLoseRepo. Close file after viewing























