Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - <b>printing commands</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Printing Commands
--------------------------------------------------------------------------------

 Using the Printer           PRINT [ <oPrint> ] ;
                                [ TITLE | NAME | DOC <cDocument> ] ;
                                [ FROM USER ] ;
                                [ PREVIEW ]
                                [ TO <xModel> ]

                                PAGE

                                   <oPrint>:Say( <nRow>, <nCol>, <cText>,;
                                                     [<oFont>], [<nWidth>],;
                                                     [<nClrText>] )
                                   ...

                                ENDPAGE
                             ENDPRINT

 <oPrint>        A reference to the Printer Object.

 <cDocument>     The name of the document to be generated. It is the name
                 that appears at the Spooler.

 <nRow>,         The starting coordinates of the print measured in
 <nCol>          printer resolution units. This means that different
                 printers will generate different looking reports.

                 In order to avoid this (you want the same looking printout
                 with different printers!) you need first to calculate the
                 resolution of the printer, and then, divide those dimensions
                 by the number of rows and columns that you want:

                 See SAMPLES\TestPrn2.prg

 <cText>         The value to print. It may be of any type. FiveWin
                 will automatically convert it into a string expression.

 <oFont>         A font object to use when printing the <cText>
                 value. See the FONT xBase commands to properly build a font.
                 It is an optional parameter.

                 Important: If you want a specific dimension for that
                 font independently from the printer used, you must specify
                 the OF ... clause when creating the font, and after the
                 printer object has been created:

                 local oPrn, oFont

                 PRINT oPrn
                    DEFINE FONT oFont NAME "Arial" SIZE 0, -8 OF oPrn
                    PAGE
                       ...
                    ENDPAGE
                 ENDPRINT

                 oFont:End()

                 Important: You have to :End() the font object once you
                 have finished and completed your printout work.

 <nWidth>       A specific printer units width to use when
                 printing the <cText> value. It is an optional parameter.

 <nClrText>     An optional color to use when printing the
                 <cText> value. It is an optional parameter.


 CLAUSES

 PAGE            Starts a new page

 ENDPAGE         Ends the current printed page

 ENDPRINT        Ends printing

 FROM USER       Lets the user interactively select the printer to use.
                 If you don't specify this clause, FiveWin will use the
                 default printer installed in your system.

 PREVIEW         Invokes the FiveWin preview system, which lets the user
                 interactively preview the printout before sending it to
                 the printer.


See Also: TPrinter Print.ch

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson