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.

Save Word Document with Chart

Thread ID:

Created:

Updated:

Platform:

Replies:

131765 Jul 26,2017 08:12 AM Aug 7,2017 05:43 AM UWP 6
loading
Tags: SfRichTextBoxAdv
Molino Charles
Asked On July 26, 2017 08:12 AM

Hi,
Currently I have an issue with my Word document, when I have no chart in the document I can save it without problem with "await document.SaveAsync(file, Syncfusion.DocIO.FormatType.Docx);"
But when I add a chart in my Word document, I have this exception : "Update mode requires a stream with read, write, and seek capabilities".
I tried to use a Stream, MemoryStream and StorageFile but I have the problem with all thoses streams.
I tried to use a document with just a chart and nothing else and I had the same exception.
Is it impossible to use a document with chart ?
Regards,
Charles

Sethumanikkam Yogendran [Syncfusion]
Replied On July 27, 2017 06:14 AM

Hi Molino,

Thank you for contacting Syncfusion support.

We are unable to reproduce the mentioned issue with the given details. Please find the below sample which we have tried at our end to reproduce the issue.
Sample link

Is it impossible to use a document with chart ?
No, it is possible to use document with the chart using Essential DocIO.

Please refer the below link to know more about load and save Word document in UWP.
Working with UWP
Working with Charts

If you’re still facing the same issue means, then kindly provide us sample or modified sample of above along with input template, and product version of Essential Studio which will helpful to reproduce the issue at our end and to provide you the appropriate solution at the earliest.

Please let us know if you have any other questions.

Regards,
Sethumanikkam.Y


Molino Charles
Replied On July 27, 2017 07:25 AM

Hi,

Actually what I am doing is that I load with a FileStream a Template and I do some MailMerge, after that I save it into the LocalFolder.


WordDocument document = new WordDocument();

Stream fileStream = new FileStream("TemplateRapport.docx", FileMode.OpenOrCreate, FileAccess.Read, FileShare.ReadWrite);

document.Open(fileStream, Syncfusion.DocIO.FormatType.Docx);

//Some MailMerge

StorageFolder folder = ApplicationData.Current.LocalFolder;

StorageFile file = await folder.CreateFileAsync("Rapport-"+fiche.reference+".docx", CreationCollisionOption.ReplaceExisting);

await document.SaveAsync(file, Syncfusion.DocIO.FormatType.Docx);

document.Close();


Without the Chart, I have no problem to save it, but when I add a chart manually to my Template I have an exception.


Regards,

Charles



Molino Charles
Replied On July 27, 2017 07:52 AM

Oops I forgot the document.

Here it is.

Regards, 

Charles


Attachment: TemplateRapport2_468c4cdb.rar

Sethumanikkam Yogendran [Syncfusion]
Replied On August 1, 2017 08:17 AM

Hi Molino,

Thank you for contacting Syncfusion support.

A support incident to track the status of your query has been created under your account. Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login


Please let us know if you have any other questions.

Regards,
Sethumanikkam.Y


Molino Charles
Replied On August 4, 2017 04:42 AM

Hi,

Now that I can save my word document, I have an other problem, when I load it inside a SfRichTextBoxAdv, the chart is not visible.

So I can't print it.

Regars,

Charles


Venkatesan Mani [Syncfusion]
Replied On August 7, 2017 05:43 AM

Hi Molino Charles,

Thank you for your update.

Our SfRichTextBoxAdv control does not supports the chart elements at this moment. We have already logged this requirement as feature request. We will implement these features in any of our forthcoming releases. We usually have a timeframe of at least three months between releases. The feature implementation would also greatly depend on the factors like product design, code compatibility and complexity. We request you to visit our website periodically for feature related updates.

Regards,
Venkatesan M. 


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.

;