TRVPrint.FormatPages without printer device?

General TRichView support forum. Please post your questions here
Post Reply
Guest

TRVPrint.FormatPages without printer device?

Post by Guest »

If no printer device is installed, TRVPrint.FormatPages() first produces a message that no standard printer device is available and than an access violation occurs.

Is there any possibility to set a screen device as device context for TRVPrint if no printer device is available so that a "print preview" is always possible even if no printer is installed?
Sergey Tkachenko
Site Admin
Posts: 17291
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

I recommend to disable all printing commands if there are no printers (check Printer.Printers.Count)
Post Reply