print without dialog box

javascript India
  • 12 years ago

     

    Hi Developer's

    how to print without dialog box in javascript? i have a print button in my aspx page. when i click the print button it will show the print dialog box. how to print directly from my page using javascript?

     help me !

    Advance Thanks

     A.Franco

  • 12 years ago

    You can't do something like this. Not in JavaScript nor in any other programming languages (AFAIK). I think that's because the printer's driver is acting like a bridge between the application and the printer, so you cannot print a document without having the dialog box.

    hth.

     

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The greatest performance improvement of all is when a system goes from not-working to working.” - John Ousterhout