Loading...

Printer Page Size & Orientation Problems

Support for GdViewer OCX and GdViewer Pro ActiveX/SDK.

Printer Page Size & Orientation Problems

Postby jpbro » Mon Jul 27, 2009 5:23 am

Hi,

I'm having trouble getting the page orientation & size to work with the Imaging object in VB6. I use:

.PrintSetStdPaperSize = vbPRPSLegal ' 5
.PrintSetOrientation = vbPRORLandscape ' 2

Before I print my image. Subsequent calls to .PrintGetPaperWidth returns 355.6 (14 inches) and .PrintGetPaperHeight returns 215.9 (8.5 inches), so it would appear that both of the settings worked. However, when I print to my printer or PDF driver, the page size & orientation is stuck at Letter size (or maybe A4) and Portrait orientation.

Is this a bug, or am I doing something wrong? :?

Thanks in advance for any help.
jpbro
 
Posts: 8
Joined: Sun Jul 26, 2009 10:37 pm
Location: Canada

Re: Printer Page Size & Orientation Problems

Postby jpbro » Mon Jul 27, 2009 5:35 am

Sorry, it was my fault! I was calling PrintSetActivePrinter after I set the printer size and orientation. :oops:
jpbro
 
Posts: 8
Joined: Sun Jul 26, 2009 10:37 pm
Location: Canada


Return to GdViewer [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest