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

Open Word Doc in a Windows Form

I am seeking a way to op[en an existing Word Template in a Windows Form as part of an application that involves editing multiple documents and converting them to a single PDF. I wouldn't think this would be too much to ask of Microsoft. Is this possible?

1 Reply

VM Venkatesan Mani Syncfusion Team January 17, 2017 08:14 AM UTC

Hi Michael,

Thank you for contacting Syncfusion support,

Regarding viewing/editing word documents:
The WPF SfRichTextBoxAdv control allows you to view, edit, and print rich text contents, and also import and export the Html, Xaml, Text files and Word documents (".doc", ".docx", ".rtf"). You can host the Syncfusion SfRichTextBoxAdv WPF control to your existing Windows Forms application using ElementHost in Windows Forms.

WPF SfRichTextBoxAdv UG link :
https://help.syncfusion.com/wpf/sfrichtextboxadv/overview

Please do refer the below MSDN reference link for more information about hosting a WPF control in Windows Forms application.
http://msdn.microsoft.com/en-us/library/ms742215(v=vs.110).aspx


Regarding converting the word documents into pdf :
Our DocIO library allows you to convert a Word document into PDF with a few lines of code. For more information regarding word document to pdf conversation refer the below link:
https://help.syncfusion.com/file-formats/docio/conversion#converting-word-document-to-pdf


Using our SfRichTextBoxAdv and DocIO library you can view and edit the word documents and export to pdf file. We have prepared a sample to demonstrate the same. Please find the sample from following link.

Sample link:
Sample.zip

Try the running sample and let us know if this helps you.

Regards,
Venkatesan M


Loader.
Live Chat Icon For mobile
Up arrow icon