471,337 Members | 1,193 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Easy HTML printing without print dialog.


We are currently looking into triggering printing of an HTML file to a
designated printer in such a way that the print dialog box is not
viewed. It is possible to use the print method of a default browser and
let the browser handle the output, however this pops up the print
dialog box. The alternative is to handle all of the format/parsing
ourselves but this seems a lot of work.

As we know exactly which printer we need to send this to, is there any
way that you can either bypass the print dialog or are there any handy
helper applications etc out there that will deal with the HTML
parsing/formatting for printing?

Also we could do with getting more feedback regarding the
success/failure of the print job, how is it possible to get this?

Any suggestions/hints would be great, thanks!

Dec 22 '05 #1
1 6960
dra
This may help; it's about DOM window events which I believe are only
supported by Internet Explorer (since they are not documented at
www.w3schools.com):

http://msdn.microsoft.com/library/de...nce/events.asp

Look for the onbeforeprint and onafterprint events.

HTH
Dan

he******@hotmail.com wrote:
We are currently looking into triggering printing of an HTML file to a
designated printer in such a way that the print dialog box is not
viewed. It is possible to use the print method of a default browser and
let the browser handle the output, however this pops up the print
dialog box. The alternative is to handle all of the format/parsing
ourselves but this seems a lot of work.

As we know exactly which printer we need to send this to, is there any
way that you can either bypass the print dialog or are there any handy
helper applications etc out there that will deal with the HTML
parsing/formatting for printing?

Also we could do with getting more feedback regarding the
success/failure of the print job, how is it possible to get this?

Any suggestions/hints would be great, thanks!


Jan 18 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Donnal Walter | last post: by
9 posts views Thread by Jody Gelowitz | last post: by
3 posts views Thread by John Peterson | last post: by
1 post views Thread by Jorgen Bodde | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.