Default Printer not exist

General TRichView support forum. Please post your questions here
Post Reply
cychia
Posts: 104
Joined: Mon Jan 16, 2006 1:52 am

Default Printer not exist

Post by cychia »

if the default printer is set to a printer which no longer exist, I will get the following exception from RVRuler:

"Printer selected is not valid"

Then, after that I cannot access the Page Setup, Print Preview & Print.

Why?

Page Setup & Print Preview shouldn't depend on printer setting for display right?
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

All these actions depend on the chosen printer.
Print preview relies on page size and printer resolution.
Page setup reads from the printer a list of available page sizes and paper sources.

Please contact the ruler author (Pieter Zijlstra, see his email in Ruler.pas) about the exception.
Pieter Zijlstra
Posts: 42
Joined: Sat Oct 08, 2005 3:56 pm
Location: The Netherlands
Contact:

Post by Pieter Zijlstra »

Since version 1.6, included in RichViewActions 1.33, RVRuler should not generate an exception when the default printer is not available. Which version are you using?

You can turn of the handling of the default printer by RVRuler by setting roAutoUpdatePrinterWidth and roUseDefaultPrinterWidth of RVRuler.Options to False.
cychia
Posts: 104
Joined: Mon Jan 16, 2006 1:52 am

How to show Page Setup without printer set?

Post by cychia »

How if there is no printer is set, but I still want to do Page Setup?
Sergey Tkachenko
Site Admin
Posts: 17566
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

In RichViewActions, it's not possible.
Post Reply