Community Forum

Printing Format

Profile Image 4 Posts 4 Karma
oetijr02 posted this 15 January 2015

Hello,

I have some code that formats my print with CSS and it prints fine on a Xerox and Zebra Printer before I added MeadCo. After adding MeadCo my formating is very off when printing to the Zebra, it is fine on the Xerox.  I tried setting paperSize="A6" with no luck.

Is there anything on MeadCo's side that would be causing this issue? It just seems odd that it would work with the Xerox and not the Zebra when they both worked before.

Any questions let me know.

Thanks,

Jake

Post Edited 15 January 2015

Profile Image 189 Posts 189 Karma
Jerry posted this 15 January 2015

>>  After adding MeadCo my formating is very off <<

 

What are you telling ScriptX to do?

 

 

Profile Image 4 Posts 4 Karma
oetijr02 posted this 15 January 2015
$label.each(function () {
       with (MeadCo.ScriptX.Printing)
       {
           copies = qty; 
           paperSize = "A6 (105 x 148 mm)";              
       }
       MeadCo.ScriptX.Printing.SetPrintScale(100);
       MeadCo.ScriptX.Printing.PrintHTMLEx(path, false, jobProgress, count);
});

After playing around with the printer settings, I found that increasing the paper size in my printer properties does the trick,. When I am using the demo and I have my Zebra printer set to the default printer I'm getting the error "Sorry, an error occured updating settings [paper size]: the parameter is not supported by the printer" I'm guessing this is the issue?

I am able to change the paper size dimension under printer properties so I'm a little confused as to why I can't change it.

Thanks.

Post Edited 15 January 2015

Profile Image 189 Posts 189 Karma
Jerry posted this 15 January 2015

Of the world's supply of printer drivers, some simply won't do what they are told.

 

I rmember that - from time to time - my children used to be like that. Banging them around the head never worked. Pragmatism often did.

 

Same here. Maybe the Zebra driver is sulking and doesn't want to respect each and all of the WIndows printing APIs. It's possible, believe me. Some coders of printer drivers don't appear to care that much.

Post Edited 15 January 2015

Profile Image 4 Posts 4 Karma
oetijr02 posted this 16 January 2015

Ha nice analogy, it makes sense thank you.

For future reference, are my parameters correct for paperSize?

In the end, I'd like to have a custom size so I'm guessing it'd be like 

with(MeadCo.ScriptX.Printing)
{
     paperSize = "114 x 177.8 mm"; 
}

 

Profile Image 189 Posts 189 Karma
Jerry posted this 17 January 2015

You might want to go here:

 

http://scriptxsamples.meadroid.com/Licensed/printControl/release/DOCTYPE

 

and check the paperSize strings that are available to your drivers.

 

For some reason Windows has never let us target 'custom' paper sizes that you define yourself.