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?
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.