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.

Open and edit docx file (WinRT app)

Thread ID:

Created:

Updated:

Platform:

Replies:

107350 Feb 25,2013 04:50 PM Feb 27,2013 07:17 AM Windows Forms 1
loading
Tags: DocIO
Peter Georgiev
Asked On February 25, 2013 04:50 PM

Hi,
I am using Essential Studio for WinRT Xaml. In my app I need to open and edit a docx file and than save it - i want just simple editing - nothing more, but I've never used this before and now I am using the trial version because I need it for just this project. So I will be really thankful if you give me something like tutorials or some directions- TNX in advice.  

Gunasekaran T [Syncfusion]
Replied On February 27, 2013 07:17 AM

Hi Peter,

Thank you for your interest in Syncfusion products.

Currently in WinRT SfRichTextBoxAdv control we do provide limited support as RichTextViewer (Non editable) to view
formatted rich-text content, view
*.doc *.docx, and *.rtf format files in Windows Store apps. SfRichTextBoxAdv control does not have support to edit and save the documents. We do have plans to add unsupported features incrementally in our future releases based on feature importance. We will let you know once this feature has been implemented.

As a workaround we have prepared the Windows Store app to open, edit and save document in Non UI and UI mode.
1. Windows Store app to open, edit and save document in Non UI mode. Open the docx input file using DocIO, find and replace text internally using DocIO, then save as docx file.
2. Windows Store app to open, edit and save document in UI mode using DocIO and Microsoft RichEditBox (To edit contents). Open the docx input file using DocIO, populate the contents in Microsoft RichEditBox for editing, save the RichEditBox contents as rtf format stream and save the rtf format stream to docx file using DocIO.

Please do find the sample from the attachment for your reference. Try the attached sample and let us know if this helps you.

Please let us know if you have any other questions.


Regards,
Gunasekaran



Sample_93ac88bf.zip

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.

;