Printer Dialog does not read the selected paper format

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Printer Dialog does not read the selected paper format

Postby Tina » Wed Jun 01, 2005 11:03 am

VPE Version 3.6 R2

Since update from 3.1 to Version 3.6 we have the following problem:

(the problem exists with different printers)

in my application for exampel I made the following settings in the printer dialog:

-Printer : METO SP 2
-Page Format : LABEL 1 (20cm x 10cm)

the labe is defined in the printer properties.

in the PRS File I found the correct Printer name and the page format

but when I call the printer setup again the settings are:
for exampel:
-Printer : METO SP 2
-Page Format : USER DEFINED

or for a Laser Printer, the Page format is DIN A 4

the setup procedrue is:

DisableForm;
with Rep do try

if not IsOpen then begin
OpenDoc;
License('VPE-XXXXXXXX'); //VPE
License('PDF-XXXXXXXX'); //PDF
end;

SetupPrinter(SetupPath + ProgrammName + '.PRS',
PRINTDLG_ALWAYS);

Finally
CloseDoc;
EnableForm;
end;


where is my fault ?

thanks

Tina
Tina
 
Posts: 6
Joined: Thu Mar 03, 2005 12:09 pm

Postby Tina » Wed Jun 01, 2005 11:36 am

It's solved.

I found the

"PrintOptions := PRINT_NO_AUTO_PAGE_DIMS;"


Tina
Tina
 
Posts: 6
Joined: Thu Mar 03, 2005 12:09 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 29 guests

cron