Re: Printer Paper Sizes > PI.DMPAPERLENGTH


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Jim Guerber on May 07, 2008 at 19:30:59:

In Reply to: Re: Printer Paper Sizes > PI.DMPAPERLENGTH posted by Bruce on May 07, 2008 at 15:19:05:

Thanks, this was a good one. Searching (google) for printer info stuff, I discovered that in order to set the length and width yourself, you must tell windows that you are going to be doing that. So, you set PI.DMPAPERSIZE to 256 as well as setting the length and width params.

The following program piece allows all 70 lines to appear on the same page (my pdf factory printer).

Note: I don't know about that length param. It may not be mm/10. I had to set it to something greater than 4280 to print all 70 lines. You should experiment yourself to see what to actually set.


Print (PtrLUN) (TR);(SetPrinterInfo = PI.DMPAPERSIZE,256) ! DMPAPER_USER -- will set width & length ourself
Print (PtrLUN) (TR);(SetPrinterInfo = PI.DMPAPERLENGTH, Length) ! Tenths of a millimeter?
Print (PtrLUN) (TR);(SetPrinterInfo = PI.DMPAPERWIDTH, Width) ! Tenths of a millimeter?




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]