3.5 SetupPrinter() Problem

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

3.5 SetupPrinter() Problem

Postby IDEAL Software Support » Tue Nov 23, 2004 3:12 pm

Hi,

I'm having problem using the SetupPrinter method in the ActiveX
librarie.

Everything work fine except that the method does not save printing
settings. Its always returning 3 (I/O problems during write of setup
file).

I work in JavaScript and here is the code that does not work.

if(VpeCtrl.SetupPrinter("printsetting.prs", 5) == 3)
alert('Failed');
VpeCtrl.PrintOptions = 0;
VpeCtrl.PrintDoc(false);

Any idea what might cause that?

Thank you for helping,

Pierre-Luc Turgeon
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby IDEAL Software Support » Tue Nov 23, 2004 3:13 pm

if(VpeCtrl.SetupPrinter("printsetting.prs", 5) == 3)
alert('Failed');
Value "5" for the parameter "dialog_control" is not defined. This might be the cause for the problem. Use a value from 0 - 4 as explained in the help file.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby IDEAL Software Support » Tue Nov 23, 2004 3:13 pm

I still got the same error after putting 1 as the dialog_control parameter.

Any other idea about what might cause this?

Thank you for your support.

Pierre-Luc Turgeon
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm

Postby IDEAL Software Support » Tue Nov 23, 2004 3:15 pm

We have tested it and here it works as it should. Maybe you have no access rights to the directory where the PRS file is written to? Check this by putting an absolute path in front of the file name, e.g. SetupPrinter("c:\tmp\printsetting.prs", 1).

And of course make sure c:\tmp exists and you have appropriate (best: full) acess rights to this directory.

Regards
Thorsten Radde
IDEAL Software GmbH
IDEAL Software Support
 
Posts: 1633
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: Google [Bot] and 10 guests

cron