Printing html files on the fly

liunx

Guest
Hi All<br />
<br />
I am trying to Automatically print HTML's on the fly, on an button event. The problem is Printer option is poping up and i want to by-pass that. <br />
<br />
here's what i am doing.<br />
<br />
<link rel = "alternate" media = "print" href = <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/">http://www.htmlforums.com/archive/index.php/</a><!-- m -->"sesame.html"><br />
<br />
Any suggestions. <br />
<br />
Thanks in Advance<br />
<br />
Chandra<!--content-->this is a security feature embedded in the browser (thank the heavens!) that makes sure that web sites cannot simply access printers and start printing thousands of pages... or even one. User must confirm that they do indeed want to print said material.<!--content-->Originally posted by chandra_patlo <br />
Hi All<br />
<br />
I am trying to Automatically print HTML's on the fly, on an button event. The problem is Printer option is poping up and i want to by-pass that. <br />
<br />
here's what i am doing.<br />
<br />
<link rel = "alternate" media = "print" href = <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/">http://www.htmlforums.com/archive/index.php/</a><!-- m -->"sesame.html"><br />
<br />
Any suggestions. <br />
<br />
Thanks in Advance<br />
<br />
Chandra <br />
<br />
I don't think thats possible, thank goodness. Could you imagine if you could bypass the clients control of their computer? You could format their hardrive or other destructive things.<!--content-->Thanks Guys<br />
<br />
<br />
There is a way to do print the pdf files on the fly. I need to print the HTML files with out poping up the printer option. That's what my client needs.<br />
<br />
Got to do ... got to do no other way.<br />
<br />
Anyways, Any help is appricaited<!--content-->like they said, not possible, and how can you do it with pdf's?<br />
<br />
you might try writing or finding a ActiveX file and see if it will by pass it, then you are stuck running this on IE only.<!--content-->yes, how DO you do it with pdfs? When I open a pdf on the web, and it opens in IE, I still get the security option.<br />
<br />
and one more thing, not everything that the client WANTS can be done. Nearly everything, but NOT EVERYTHING. <br />
<br />
Your client should be informed that they are trying to bypass a security feature of the browser. If your client needs to access secured features protected by the browser, they need to hire a hacker.... not a web developer. <br />
<br />
Seriously, is it really an issue to press 'OK' when the security confirm option pops up?!! Work with the system, not against it.<!--content-->Hi guys<br />
<br />
Here's how u can print pdf files on the fly, go through this documentation and the site has the Download <!--more--> of evaluation copy of the plugin.<br />
<br />
<!-- m --><a class="postlink" href="http://www.activepdf.com/en/Documentation/activePDF-PDFPrint.pdf">http://www.activepdf.com/en/Documentati ... FPrint.pdf</a><!-- m --><br />
<br />
<br />
Any help in how to print the html on the fly is appreciated.<br />
<br />
<br />
chandra<!--content-->Any help in how to print the html on the fly is appreciated.<br />
as stated numerous times above, this is impossible, no way, cant be done. you can not print without the users permission. thank heavens<!--content-->Originally posted by chandra_patlo <br />
Hi guys<br />
<br />
Here's how u can print pdf files on the fly, go through this documentation and the site has the Download <!--more--> of evaluation copy of the plugin.<br />
<br />
<!-- m --><a class="postlink" href="http://www.activepdf.com/en/Documentation/activePDF-PDFPrint.pdf">http://www.activepdf.com/en/Documentati ... FPrint.pdf</a><!-- m --><br />
<br />
<br />
Any help in how to print the html on the fly is appreciated.<br />
<br />
<br />
chandra <br />
haaaaaa haaa that is funny. that doesn't make the pdf print on the fly. you have to have the client Download <!--more--> it as it is a plug in. sure you can do the same for printing html on the fly also. that is what I said in my post above, an ActiveX file. again you have to have the server on windows and the user has to use IE. <br />
<br />
agian, you cannot print anything on the fly without user intervention. that includes pdf. and you won't get half the internet to Download <!--more--> a plugin for you. waste of time for you and the client.<!--content-->rigth from M$ mouth<br />
<br />
<br />
You can specify OLECMDID_DONTPROMPTUSER if you don't want the Print dialog box to be displayed, but this only works in Internet Explorer 4.0. OLECMDID_DONTPROMPTUSER is now ignored in Internet Explorer 5. <br />
<br />
<br />
<!-- m --><a class="postlink" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnie55/html/wb_print.asp">http://msdn.microsoft.com/library/defau ... _print.asp</a><!-- m --><br />
<br />
you might find some answers here as well<br />
<br />
<!-- m --><a class="postlink" href="http://msdn.microsoft.com/library/default.asp?URL=/library/en-us/dnscrpt/html/dhtmlprint.asp">http://msdn.microsoft.com/library/defau ... lprint.asp</a><!-- m --><br />
<br />
all saying you can't print without the user knowing.<!--content-->Hi Scoutt<br />
<br />
Thank you for your help, I found an activeX control which is free to Download <!--more--> from <!-- m --><a class="postlink" href="http://www.meadroid.com/">http://www.meadroid.com/</a><!-- m -->. Hope this will be use full for ever one.<br />
<br />
And i'll also try out the way u said.<br />
<br />
Thanks again<!--content-->but the question is, why would anyone Download <!--more--> that? since it only leaves people vulnerable<!--content-->so, now to print something your users have to Download <!--more--> this script? Hmmmn... why? I mean, I see the obvious advantage for web developers, but not for the client. <br />
<br />
I see that this only works for IE: "document printing operations from client and server computers running Microsoft's Internet Explorer browser."<br />
<br />
and I couldn't find where it stated that it overrode the security setting.<!--content-->There is a reason for my client using automatic printing.<br />
On a single click some times near to 300-400 procedures are porcessed and these procedure are converted into html and the need to be printed.<br />
<br />
that is the reason why i don't need user interaction with the printer option menu. or else he has to click on print 300 times or so.<br />
<br />
Thanks guys<!--content-->couldn't you have your process run then show the print command? seems like you proces is all messed up if it will show the print dialog box 300 times.<!--content-->
 
Back
Top