Loading...

How to set a custom paper size for the printer ?

Support for GdPicture Light Imaging Toolkit and GdPicture Pro Imaging ActiveX/SDK.

How to set a custom paper size for the printer ?

Postby oneuser » Thu Jun 07, 2007 12:00 pm

I'm using the GdPicturePro OCX (demo version) and if the aplication I'm trying to do will work I'll buy it.

I have a HP DesignJet 1050C printer and I have to use the user defined papersize. I know there is the command object.printsetstdpapersize(256) => user define. But I don't know how I enter the width and height.

That is my only problem. I need this to buy the product.

Best Regards
- From esupport message -
oneuser
 
Posts: 10
Joined: Wed May 23, 2007 11:12 am

Postby Loïc » Thu Jun 07, 2007 2:21 pm

Hi,

I've added a new method: PrintSetUserPaperSize(nWidth, nHeight)

nWidth and nHeight are custom paper size in millimeters

Available in the last beta release:
http://www.gdpicture.com/ressources/betas/


Best regards,

Loïc Carrère
Loïc Carrère, support team.
www.orpalis.com
User avatar
Loïc
Site Admin
 
Posts: 4430
Joined: Tue Oct 17, 2006 10:48 pm
Location: France

How to set the paper size for plotters (A2, A1, ...)

Postby louis » Fri Jun 26, 2009 5:08 pm

Hi,
For formats greater than A3 (A2, ...) or special formats used by devices different from printers (plotters), that's a bit special. I have set succesfully the program code. It seems we need to change the paper size with the DEVMODE structure and the codes for the paper size are own to each plotter.
For example, for HP DesignJet 1050C, the codes are 620, 621, .. for HP DesignJet T1100, the codes are 5007, 5036, ... !
I can give you more details about that.
louis
 
Posts: 49
Joined: Tue Apr 28, 2009 6:18 pm


Return to GdPicture [Pro] ActiveX

Who is online

Users browsing this forum: No registered users and 1 guest

cron