How to set a custom paper size for the printer ?

Discussions about image processing and document imaging.
Post Reply
oneuser
Posts: 10
Joined: Wed May 23, 2007 11:12 am

How to set a custom paper size for the printer ?

Post by 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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Post by 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:
https://www.gdpicture.com/ressources/betas/


Best regards,

Loïc Carrère

louis
Posts: 55
Joined: Tue Apr 28, 2009 6:18 pm

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

Post by 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest