Page 1 of 1

TRVPrint.FormatPages without printer device?

Posted: Wed Nov 09, 2005 3:31 pm
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?

Posted: Wed Nov 09, 2005 8:57 pm
by Sergey Tkachenko
I recommend to disable all printing commands if there are no printers (check Printer.Printers.Count)