What is the value SetupPrinter() returns

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

What is the value SetupPrinter() returns

Postby klax » Tue Dec 06, 2011 5:32 pm

To avoid the print dialog is open I use the function SetupPrinter(filename, PRINTDLG_ONFAIL).
What is th value SetupPrinter() returns, when the printer whose name is in the .prs-file is not found in the network?
(The .prs-file was created on another workstation on the network, where the same printer has a different name.)
It looks like the value is 0. But with the following PrintDoc, the document is not printed.
Is there a possibility to check with SetupPrinter() the existence of the printer in order to open the dialog when the printer is not available?

Thanks for help.

Friendly
klax
klax
 
Posts: 15
Joined: Wed Apr 06, 2005 4:17 pm

Re: What is the value SetupPrinter() returns

Postby IDEAL Software Support » Thu Dec 08, 2011 4:52 pm

What version of VPE are you using? If it is older than the current v6.10, please be so kind to download the trial-version of v6.10 and let us know if this problem is still existing. I remember we changed something in more recent versions of VPE.
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm

Re: What is the value SetupPrinter() returns

Postby klax » Fri Dec 09, 2011 7:00 pm

Sorry I forgot to mention the version number. It is 3.60.
klax
 
Posts: 15
Joined: Wed Apr 06, 2005 4:17 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 44 guests