Easy HTML printing without print dialog.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hellohez@hotmail.com

    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!

  • dra@palm-ht.com

    #2
    Re: Easy HTML printing without print dialog.

    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):



    Look for the onbeforeprint and onafterprint events.

    HTH
    Dan

    hellohez@hotmai l.com wrote:[color=blue]
    > 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![/color]

    Comment

    Working...