BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi
We are using Syncfusion for creating pdf documents in our web application.
Currently users are printing the documents after opening individual pdf and are clicking on the Print button in the toolbar.
However now the requirement is that user should be able to select multiple PDF documents on web application and click a button to print all the selected documents in a single go WITH OUT preview.
Please let me know if this is possible. Would appreciate if code is provided for doing this.
Thanks in advance
Regards
Srinivas
Hi Srinivas,
Thank you for your interest in Syncfusion products.
We can able to print the PDF document without opening it.
Please find the below code snippet.
PdfViewerControl viewer = new PdfViewerControl();
viewer.Load("Barcode.pdf");
// Initialize print dialog.
PrintDialog dialog = new PrintDialog();
dialog.AllowPrintToFile = true;
dialog.AllowSomePages = true;
dialog.AllowCurrentPage = true;
dialog.Document = viewer.PrintDocument;
dialog.Document.Print();
Please refer the below link for more details.
http://asp.syncfusion.com/Windows/demos/reporting/pdfviewer/Print/Silent%20Printing/Sample.aspx
Thanks,
Karthikeyan.C
Hi Arronlee,
Thank you for your interest in Syncfusion Products.
There are many features available with Essential Pdf.
Some of them are:
Form filling,
Support Standard, True Type, CJK fonts.
Pdf Light table,
Support many brush types,
Support many annotations,
Signature,
Html to PDF
You may refer the following link for overview of the features in Essential PDF.
http://www.syncfusion.com/products/aspnet/pdf
Also, Could you please provide us the thread link which is not yet addressed.
We regert for the inconvenience caused.
Thanks,
Karthikeyan.C
Hi Karthikeyan
Thanks for the reply.
Sorry for delayed response.I checked the forum for first 5 days after posting the query. Thought nobody will give the response.
It seems the code snippet you have provided is referring to Windows forms.
Will this work for the asp.net application? If not please provide the code for web application.
Awaiting for your response.
Regards
Srinivas
Karthikeyan ,
http://help.syncfusion.com/ug/windows%20forms/pdf%20viewer/default.htm#!documents/silentprinting.htm
I have Visited the above url and the PrintDialog is absolutely working fine for Windows.
Is there any way out for web application to print a document without preview. Appreciate your response.
Thanks in Advance.
Chandra
Hi Srinivas/Chandra,
Thank you for your interest in Syncfusion Products.
Please use the below code snippet to Print the PDF document silently, without opening the document.
Code:
Syncfusion.Windows.Forms.PdfViewer.PdfDocumentView documentView = new Syncfusion.Windows.Forms.PdfViewer.PdfDocumentView();
documentView.Load(filePath);
documentView.PrintDocument.Print();
Please let us know if you have any concern.
Thanks,
Karthikeyan.C
Karthikeyan ,
Thanks for your response.
The snippet provided works for Windows but not the web applications . We would be happy if you can post the same.
Regards,
Chandra
Hi Chandra,
Thank you for your update.
The PdfViewer uses code from Syncfusion.PdfViewer.Windows for printing.
Could you please add Syncfusion.PdfViewer.Windows.dll as reference to get silent printing gets worked in Web application.
Please let us know if you have any concern.
Thanks,
Karthikeyan.C
Karthikeyan , Thank you for the response .
We are the licenced users for syncfusion and now we dont find the "Syncfusion.PdfViewer.Windows.dll" in our space.
Where do we get it from ? How do we get it ?
However , i still have a question if the windows dll would suffice our requirement on web application.
Regards,
Chandra
In addition to the above response .
We have only the below list of dll's . Please do assist us. Thank you in Advance.
In addition to the above response .
We have only the attached list of dll's with us . Please do assist us. Thank you in Advance.
Geetha / karthikeyan ,
Thanks much for your support.
Our team has got the dll and now the solution is working as expected. Thank you.
Regards,
Chandra
Hi Chandra,
Thank you for your update.
Please let us know if you have any other concern.
Thanks,
Karthikeyan.C
Kartikeyan / Geetha ,
We had the below isssue with the syncfusion after getting the required dll's from Syncfusion.
"The code worked fine when it was ran locally and we were able to print the pdf docs with out preview.
However , the same did not work when it is hosted on the webserver and even on local IIS."
Could you please provide the actual's of what would cause the isssue and how to overcome it . Because , we cannot take a back step after getting the dll's as client has been informed that the Syncfusion is working.
Hope you understand. Thanks in advance.
Regards,
Chandra
Hi Chandra,
Thank you for your update.
Could you please create a new Direct Trac incident with the
subject “Forum 109282- Printing multiple PDF without preview”.
And post the issue you have found while trying to implement.
Please let us know if you have any concern.
Karthikeyan.C
HI Pregger,
Thank you for your interest in Syncfusion Products.
We can able to draw barcodes in PDF document, please find below the online sample for including Barcode in PDF document using Syncfusion.
http://asp.syncfusion.com/demos/reporting/Pdf/Graphics/BarCode/CS/Default.aspx
Thanks,
Karthikeyan.C
PdfViewerControl viewer = new PdfViewerControl();
viewer.Load("Barcode.pdf");
// Initialize print dialog.
PrintDialog dialog = new PrintDialog();
dialog.AllowPrintToFile = true;
dialog.AllowSomePages = true;
dialog.AllowCurrentPage = true;
dialog.Document = viewer.PrintDocument;
dialog.Document.Print();
For PdfViewerControl which dll we need to take reference