[Jsprintsetup] can't define paper size

Jonas Bring jonas at ibiz.se
Mon Nov 7 04:12:59 PST 2011


Hi,

I have tried to set the paper size to fit a label printer (62x80) but it still prints A4. I do this:

// first i set margins and orientation
jsPrintSetup.definePaperSize(100, 100, 'label', 'label', 'label', 62, 80, jsPrintSetup.kPaperSizeMillimeters);
jsPrintSetup.setPaperSizeData(100);
 jsPrintSetup.setOption('printSilent', 1);
jsPrintSetup.print();

I use OSX, is that a problem?

:-) jonas



More information about the Jsprintsetup mailing list