Re: Setting Left Margin for 3-hole punching


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

Posted by Robert G Laurin on February 18, 2004 at 08:00:00:

In Reply to: Setting Left Margin for 3-hole punching posted by Grant Foraker on February 17, 2004 at 20:15:05:

If you are using a Windows printer NOT in :RAW mode, the Esc+"&a3L" will NOT work. If you are using a PCL printer in native mode, then it shjoudl work and I would stick it in DES' NEWPAGE function.

If you are using a Windows printer, then all you have to do is increment the PtrX1 coordinates used in TextOut and DrawText (3 col would be about 0.3 * TWIPS.PER.INCH).

If you use an DES Init routine that computes your physical page parameters, then incrementing your left margin should be done there (only once) and could be passed back to your program with the # buffer variable DES.UserData$

Be carefull when computing your margins, the PTR.GetPageInfo can give you both the PTR.PAGEINFO.PHYSICALSIZE, PTR.PAGEINFO.PRINTABLESIZE and PTR.INFO.PHYSICLAOFFSET, to compute your magins you have to look at all three. Differnt printers have different non-printable zones that would affect your margins when looking at the printable area.

So a 1/2" margin all around would be:

LEFT.MARGIN = (0.5 * TWIPS.PER.INCH) - PHYSICAL.OFFSET.LEFT

TOP.MARGIN = (0.5 * TWIPS.PER.INCH) - PHYSICAL.OFFSET.TOP

RIGHT.MARGIN = PHYSICAL.WIDTH - PHYSICAL.OFFSET.LEFT - (0.5 * TWIPS.PER.INCH)

BOTTOM.MARGIN = PHYSICAL.HEIGHT - PHYSICAL.OFFSET.TOP - (0.5 * TWIPS.PER.INCH)

Those coordinates should give you the printable zone you want to use as PtrX1, PtrY1 PtrX2, PtrY2 (I hope I got those right).



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):






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