Wrong device properties from printerdriver

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Wrong device properties from printerdriver

Postby rf72 » Tue Feb 23, 2010 8:58 am

We use the VPE Version 3.20.4 since several years without any problems.
Now one of our Customers installed a new printer (HP Photosmart C4600 series) on a System with Windwos XP SP3.

With VPEGetDevice() I get the following values:
#'HP Photosmart C4600 series'
IdentityDictionary new: 17
#DevPaperBin =259;
#PaperWidth =0;
#DevOffsetRight =32;
#PaperFormat =-1;
#DevPrintableWidth =-64;
#DevPrinterOffsetX =32;
#PageOrientation =2;
#DevOffsetTop =32;
#DevPrinterOffsetY =32;
#DevOffsetLeft =32;
#DevPhysPageHeight =2969;
#DevDuplex =1;
#PageFormat =-1;
#PaperHeight =0;
#DevOffsetBottom =32;
#DevPhysPageWidth =2101;
#DevPrintableHeight =-64

On my system (Win XP SP, same printerdriver) :
#'HP Photosmart C4600 series'

IdentityDictionary new: 15
#DevOffsetRight =31;
#PageFormat =-1;
#PaperFormat =-1;
#DevPrintableHeight =2731;
#PageOrientation =1;
#DevPhysPageWidth =2159;
#DevPrinterOffsetX =32;
#DevPrintableWidth =2096;
#DevOffsetLeft =32;
#DevOffsetTop =32;
#PaperWidth =2100;
#DevOffsetBottom =31;
#DevPrinterOffsetY =32;
#PaperHeight =2970;
#DevPhysPageHeight =2794

On the customer system I get wrong values for PaperHeight and PaperWidth.

If anyone has any idea thanks for help

rolf
rf72
 
Posts: 1
Joined: Tue Feb 23, 2010 8:33 am

Postby IDEAL Software Support » Tue Feb 23, 2010 5:02 pm

There seems to be a problem with the printer driver. As you can see, it returns different values even for the PHYSICAL page dimensions.

You should check, if there is a custom form assigned to the printer. To do so:
1. Open the Control Panel and then the Printers folder
2. Select the printer and right-click onto it, select "Properties" from the pop-up menu
3. Click onto "Printing Preferences"
4. Click onto "Advanced"
5. Verify the settings of the "Paper Size" field


Tip: for Win XP, custom forms can be defined as follows:
1. Open the Control Panel and then the Printers folder
2. Select from the menu "File | Server Properties"
IDEAL Software Support
 
Posts: 1622
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 82 guests