[Jsprintsetup] Custom Page Size

Roderick Smith roderick.smith at mail.tt
Tue Jul 13 12:19:23 PDT 2010


Hi all,

I'm trying to use jsprintsetup (0.8.2h) to print some custom size forms 
(216 x 93 mm) on my intranet. However, regardless of what I try the 
resulting output is always the page being printed on an A4 page. I've 
tried setting the size with setOption and setGlobalOption but I haven't 
got any success yet. Does anybody know what could be going wrong? I'm 
sure it must be just a minor thing on my side (not passing a flag or 
something), but I haven't figured out what it could be.

Below is the code I'm using. I'm using Firefox 3.6.6 on Windows XP SP3.

Thank you very much in advance for your help.

I've tried this 2 variants of the code:

<script type="text/javascript">
jsPrintSetup.setOption('paperWidth', 216);
jsPrintSetup.setOption('paperHeight', 93);

jsPrintSetup.setOption('headerStrLeft', '');
jsPrintSetup.setOption('headerStrCenter', '');
jsPrintSetup.setOption('headerStrRight', '');

jsPrintSetup.setOption('footerStrLeft', '');
jsPrintSetup.setOption('footerStrCenter', '');
jsPrintSetup.setOption('footerStrRight', '');

jsPrintSetup.print();
</script>

<script type="text/javascript">
jsPrintSetup.setGlobalOption('paperWidth', 216);
jsPrintSetup.setGlobalOption('paperHeight', 93);

jsPrintSetup.setOption('headerStrLeft', '');
jsPrintSetup.setOption('headerStrCenter', '');
jsPrintSetup.setOption('headerStrRight', '');

jsPrintSetup.setOption('footerStrLeft', '');
jsPrintSetup.setOption('footerStrCenter', '');
jsPrintSetup.setOption('footerStrRight', '');

jsPrintSetup.print();
</script>

-- 
Best Regards
Roderick Smith
Senior Developer

Green Dot Limited
61 Mucurapo Road
St James
Trinidad
West Indies

T: +1 868 628 GDTT (4388)
F: +1 868 628 5197
E: roderick.smith at gd.tt
W: www.gd.tt



More information about the Jsprintsetup mailing list