Hi Team,
Hi Aditya,
Thnaks for your inquiry. Please use DocumentBuilder.InsertOleObject method to insert an embedded OLE object from a stream into the document. Please check the following code example.
DocumentBuilder builder = new DocumentBuilder(doc);
Stream memoryStream = File.OpenRead(MyDir + “Book1.xls”);
Shape oleObject = builder.InsertOleObject(memoryStream, “Excel.Sheet.8”, true, null);
doc.Save(MyDir + @“out.docx”);Hi Tahir,
Hi Aditya,
Thanks for your inquiry. Unfortunately, Aspose.Words does not support the requested feature at the moment. However, I have logged this feature request as WORDSNET-10782 in our issue tracking system. You will be notified via this forum thread once this feature is available.
Could you please share your expected Word document here for our reference along with the Excel document which contains the chart?
Hi,
Hi Aditya,
Thanks for sharing the documents. As per my understanding, you are copying the chart from Excel document and paste it into Word document. Please confirm this. Thanks for your cooperation.
I would like to add that I am also looking to add a chart to Word document. Preferably a native Word chart but importing an Excel or Powerpoint Chart would be a short-term workaround.
Yes, but not as an image. I want to copy paste it in native word chart format so that we can edit that chart at later stage in word itself if required.
Hi Aditya,
bradpatton:
I would like to add that I am also looking to add a chart to Word document. Preferably a native Word chart but importing an Excel or Powerpoint Chart would be a short-term workaround.
There are examples of using the Open XML SDK to create a chart. Is there anyway to create the chart XML using that and add it to an Aspose Document Builder (so I wouldn’t need to rewrite all of the code to use the SDK just the chart section).
I am afraid, Aspose.Words currently does not provide API
classes to be able to create charts from scratch and update them with
new values. Your request has been linked to the appropriate issue (WORDSNET-4617) and you will be notified as soon as it is supported. We apologize for your inconvenience.
Adi_evs:
Yes, but not as an image. I want to copy paste it in native word chart format so that we can edit that chart at later stage in word itself if required.
Thanks for sharing this detail. We will update you via this forum thread once WORDSNET-10782 feature is available.
Please let us know if you have any more queries.
The issues you have found earlier (filed as WORDSNET-4617) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(36)