PxPlus User Forum

Twitter Twitter Twitter

Author Topic: *winprt* mxc/mxl  (Read 912 times)

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 175
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
*winprt* mxc/mxl
« on: August 25, 2020, 12:35:33 PM »
So i'm trying to deal with a problem on an old print program...
and  here is my question -> why does the mxl / mxc differ when i open printer 2 different ways:

open (1)"*winprt*;NORMAL"
select printer L1 from windows printer box
print mxc(1)
50
print mxl (1)
81

open (1)"*winprt*;L1"
print mxc(1)
49
print mxl (1)
44

when it does the NORMAL open (which works) and i'm trying to open printer quietly -> is there any way i can see what font it is defaulting to?


jeff






Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: *winprt* mxc/mxl
« Reply #1 on: August 25, 2020, 03:08:04 PM »
Likely the printer you are referring to is different between NORMAL and L1 -- perhaps due to the printer default settings.  For example one may be landscape, the other portrait, different paper sizes,  different margins, etc.

What we normally suggest if once you have opened any graphical printer (*winprt* or *pdf*) you set the default font and size as in:

OPEN (nn,OPT="ORIENTATION=PORTRAIT; MARGINS=.25:.25:.25:.25") "*WINPRT*..."
PRINT (nn) 'FONT'("Courier New",-12), 'DF','LPI'(6),

This should get you a 12 point high font (1/6 of an inch) which and sets 6 LPI.

This should give you consistent results assuming the paper and printers are the same.



Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com

Jeffrey Ferreira

  • Diamond Member
  • *****
  • Posts: 175
  • I must have taken a wrong turn at Albuquerque.
    • View Profile
Re: *winprt* mxc/mxl
« Reply #2 on: August 25, 2020, 03:13:30 PM »
Thank you Mike.
I was printing a Default Font after.
This is a zebra printer and even after sending the 'DF' i can't get the mxc / mxl close.
i'll try again...