Print & Preview

General TRichView support forum. Please post your questions here
Post Reply
Malefaust
Posts: 3
Joined: Tue Jul 11, 2006 1:55 pm

Print & Preview

Post 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
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Malefaust
Posts: 3
Joined: Tue Jul 11, 2006 1:55 pm

Post by Malefaust »

where it is Printer?? TRVPrint object has not Orientation property...
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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"
Malefaust
Posts: 3
Joined: Tue Jul 11, 2006 1:55 pm

Post by Malefaust »

ok, found it. For preview do you have an idea?
thanks
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

What's the problem with preview? Use TRVPrintPreview component
Post Reply