Asp.net Print Pdf To Printer


I need to have a button on my web form that says 'Generate PDF' to - well - generate the page as a PDF when clicked. If this were a Winforms application, it would be trivial. Just set the default printer to the BullZip PDF Printer driver and print. But this is an asp. Kreps Notes On The Theory Of Choice. net app, so it is not so simple. I have been googling all morning and have not been able to find a simple solution. Basically, all I think I want to do is to allow the current page to be printed server side to the Bullzip PDF printer driver. I don't do much asp. Basic Accounting By Win Ballada 2013 Edition. net, so I don't see how to do this.
Even though we're less inclined to print web-pages nowadays, it often makes sense to save useful content from a website as a PDF file to read offline. Modern browsers. I've generated a pdf using iTextSharp and I can preview it very well in ASP.Net but I need to send it directly to printer without a preview. I want the user to click the print button and automatically the document prints. I know that a page can be sent directly to printer using the javascript window.print() but I don't know how to make it for a PDF. I want to print a word document on Adobe PDF printer and want to save output file. (c# asp.net 3.5). “Print PDF file in VB.Net by giving Printer. How to print PDF(Portable Document Format)file from asp.net code, With Warm Regards By Mohan Posted 20-Jan-12 18:40pm. Regarding PDF printing vai asp.net.
TIA Marcia Marcia G. You need to use a 3rd party component that supports this. Serve And Protect Riddim Zippy. The iTextSharp and the abcPDF that I mentioned are all 3rd party components that support converting HTML to PDF. As I also said you really cannot use the 'print' driver installed on the server unless it is setup with DropBox support.
Meaning that you drop a file into a folder and it prints it. The BulletZip PDF Printer driver that you are using has a 'commercial' (500$) version that if you license it it lets you install a component on the server that lets you convert from your webapp.
It even comes with.NET Classes to do so. But there is no magical way the 'user' clicks 'generate pdf' and it simply prints on the server and then sends a PDF File back to the client, The proper way is to go Web App ->Renders HTML Output to a file or to a Stream ->Which goes to a PDF Library component that accepts an HTML File or a Stream containg HTML content ->and outputs a PDF ->which you then send to the user's browser. ITextsharp is 'free' but it is GPL which means unless it's license specifcally allows you to link you can't link withotu your company's code all being GPL abCPDF is approximately 300 USD iirc BulletZip is approximately 500 (You need Developer License) As a 3rd option, if this is an 'Intranet' you could have everybody who wants a PDF install a BulletPDF print driver on their machine and choose to print to that.