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.
Unfortunately, activation email could not send to your email. Please try again.

Does DocIO support printing?

Thread ID:

Created:

Updated:

Platform:

Replies:

118053 Jan 26,2015 05:02 AM Jan 28,2015 07:26 AM WPF 3
loading
Tags: DocIO
Dmitry
Asked On January 26, 2015 05:02 AM

I like DocIO very much. But one very needed feature is Printing document without MS Office? How can i do this?

Divyalakshmi Vasudevan [Syncfusion]
Replied On January 27, 2015 08:18 AM

 

Hi Dmitry,

Thank you for your interest.

Currently Essential DocIO doesn’t have support for printing functionality. We have logged this as a feature request in our database. We will implement this feature in any of our upcoming releases. We usually have an interval of at least three months between releases. The feature implementation would also greatly depend on the factors such as product design, code compatibility and complexity. We will update you when this feature has been implemented. This can be tracked through our feature management System:


http://www.syncfusion.com/support/directtrac/features/WF-3500

as a workaround, we have prepared the sample to meet your requirement to print the word document by two ways.

·         Using PrintDocument, It convert the document to image and print the images.

·         Using Essential PdfViewer, It convert the document to pdf and print the pdf document.

 Please do find the sample from the below link. Try running this sample and let us know if this helps you.

Sample link:
http://www.syncfusion.com/downloads/support/directtrac/118053/GenerateWord_WPFPrint2043143958.zip

Please let us know if you have any questions.

Regards,
Divyalakshmi V



Dmitry
Replied On January 27, 2015 10:06 AM

Thank you very much. This is what i need.
Workaround for anyone else:

WordDocument wordDoc = new WordDocument(fullPath);
                    DocToPDFConverter converter = new DocToPDFConverter();
                    //Convert word document into PDF document
                    PdfDocument pdfDoc = converter.ConvertToPDF(wordDoc);
                    //Save the pdf file
                    Stream ms = new MemoryStream();
                    pdfDoc.Save(ms);

                    // Print
                    Syncfusion.Windows.Forms.PdfViewer.PdfDocumentView documentView = new Syncfusion.Windows.Forms.PdfViewer.PdfDocumentView();
                    documentView.Load(ms);
                    documentView.PrintDocument.Print();


Divyalakshmi Vasudevan [Syncfusion]
Replied On January 28, 2015 07:26 AM

Hi Dmitry,

Thank you for your valuable feedback and code suggestion . Please let us know if you need any further assistance.

Regards,
Divyalakshmi V



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;