We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Printing multiple PDF without Preview

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

 


20 Replies

KC Karthikeyan Chandrasekar Syncfusion Team June 10, 2013 12:27 PM UTC

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

 



AR arronlee June 17, 2013 03:29 AM UTC

I love the processing way of Syncfusion.
But a friend of mine told me he used another PDF SDK to process PDF.
He also claimed that it is as wonderful as Syncfusion.
I want to know are there any differences between them. Does any one have any idea about it?
Thanks in advance.
BTW, the admin here is so nice, I used to post a thread in other product's forum. A year passed, nobody even noticed me.!!!!


KC Karthikeyan Chandrasekar Syncfusion Team June 19, 2013 10:21 AM UTC

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

 



SR Srinivas July 10, 2013 10:48 AM UTC

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

 



CH Chandra July 11, 2013 07:56 AM UTC

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

 



KC Karthikeyan Chandrasekar Syncfusion Team July 12, 2013 11:18 AM UTC

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

 



CH Chandra July 15, 2013 06:14 AM UTC

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

 



KC Karthikeyan Chandrasekar Syncfusion Team July 17, 2013 03:53 AM UTC

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

 



CH Chandra July 18, 2013 06:55 AM UTC

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



CH Chandra July 18, 2013 08:03 AM UTC

In addition to the above response .

We have only the below list of dll's . Please do assist us. Thank you in Advance.

 



Syncfusion dll's _d4ab390f.zip


CH Chandra July 18, 2013 08:04 AM UTC

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.

 



Syncfusion dll's _e45c717d.zip


GM Geetha M Syncfusion Team July 19, 2013 05:38 AM UTC

Hi Chandra,

Thank you for the details.

Could you please create a direct-trac incident so that we can clarify about using Syncfusion.PdfViewer.Windows.dll?

Regards
Geetha


CH Chandra July 19, 2013 12:49 PM UTC

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



KC Karthikeyan Chandrasekar Syncfusion Team July 22, 2013 04:26 AM UTC

Hi Chandra,

Thank you for your update.

Please let us know if you have any other concern.

 

Thanks,

Karthikeyan.C



CH Chandra July 26, 2013 08:10 AM UTC

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 

 



KC Karthikeyan Chandrasekar Syncfusion Team July 30, 2013 03:40 AM UTC

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.

 

Thanks,

Karthikeyan.C

 



PR Pregger June 3, 2014 09:06 AM UTC

I can only create barcode on Word document by using a Word barcode add-in. I want to get more help on create barcodes on pdf document. Thanks!


KC Karthikeyan Chandrasekar Syncfusion Team June 3, 2014 09:13 AM UTC

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



KI Kishore December 8, 2018 09:44 AM UTC

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



KK Karthik Krishnaraj Syncfusion Team December 10, 2018 10:33 AM UTC

Hi Kishore, 
 
Please find the dll’s required for using PDF viewer control from below, 
 
 
You can find more details regarding usage and the functionalities of PDF Viewer control from below, 
 
 
Regards, 
Karthik. 


Loader.
Live Chat Icon For mobile
Up arrow icon