niche Posted June 11, 2009 Share Posted June 11, 2009 how do you think they are printing these coupons at this link: http://www.omahacoupons.com/coupon.asp?CID=1529html, java,asp,php, or some combo?i'm not asking for code just some tips to get started.thanks,niche Link to comment Share on other sites More sharing options...
Natechs Posted June 11, 2009 Share Posted June 11, 2009 JavaScriptDo this: <a href="java script:window.print();">Print</a> Link to comment Share on other sites More sharing options...
thescientist Posted June 11, 2009 Share Posted June 11, 2009 javascript. they have this code in the head section on the coupon page that opens up when you click on the print link from the page you supplied: <script language="JavaScript" type="text/JavaScript">function printWindow(){ bV = parseInt(navigator.appVersion) if (bV >= 4) window.print()}</script> and then in the body tag of that same page, the use the onload function <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="bodytext" onLoad="printWindow();"> edit: didn't realize you weren't asking for code, but there it is anyway, Link to comment Share on other sites More sharing options...
niche Posted June 11, 2009 Author Share Posted June 11, 2009 I'm following you.I just don't know how to take command of a system's printer to print a single coupon with copies = 1, or if that's even possible. Is that possible? I could use tips for getting started on a solution for this kind of problem.Thanks,Niche Link to comment Share on other sites More sharing options...
justsomeguy Posted June 11, 2009 Share Posted June 11, 2009 No, you don't have access to the actual device, you can only tell the browser to show the print dialog box. If you want to control the actual printer you need to use an ActiveX control or Java applet. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.