Page 1 of 1

Print & Preview

Posted: Tue Jul 11, 2006 2:05 pm
by Malefaust
i have several rtf file that they must be prints. How can i do preview and print of rtf without loading rtf file inTRichView and TRichViewEdit? And how can i change the orientation of pages for previewing and printing?
Excuse me for my bad english.
thanks

Posted: Tue Jul 11, 2006 4:18 pm
by Sergey Tkachenko
You must load document in TRichView before printing it.
But this TRichView may be hidden (Visible = False).

For changing page orientation, assign the proper value to Printer.Orientation (uses Printers), before calling FormatPages.

Posted: Wed Jul 12, 2006 10:26 am
by Malefaust
where it is Printer?? TRVPrint object has not Orientation property...

Posted: Wed Jul 12, 2006 12:05 pm
by Sergey Tkachenko
It's a standard Delphi object (more exactly, a function returning this object) allowing to change printing options, such as page orientation.
See the Delphi help file on:
"Printer function", "TPrinter"

Posted: Thu Jul 13, 2006 2:05 pm
by Malefaust
ok, found it. For preview do you have an idea?
thanks

Posted: Fri Jul 14, 2006 4:14 pm
by Sergey Tkachenko
What's the problem with preview? Use TRVPrintPreview component