We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Embed an object?

Hello,

I am trying to embed an excel document as an OLE object into a Word document using Aspose. Can anyone help me figure out how to do this?

Thanks for any help.

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Inserting new OLE objects into Word documents and updating existing OLE objects is not supported at the moment. Inserting an OLE object usually requires the host application and probably cannot be done by Aspose.Words.

What is supported is preserving OLE objects in documents. That is if you open an MS Word document and then save it (possibly in another MS Word format) then OLE objects are preserved. You can also access objects programmatically, extract their data and preview image. However, creating new OLE objects is not supported. This is the issue #3050 in our defect database.

Best regards.

Thanks for the quick reply.

I need to merge data into some excel cells so I am going to use Aspose and some named ranges to do the merge then spit out the file and use Word OLE automation to embed the object.

I am having an issue since when I embed the excel worksheet I only want a certain part of it to show and I cant figure out how to adjust the range that is shown.

What I am trying to do is merge some information into the spreadsheet (which is a gant chart made using excel) and then put this into the word document. I don’t need it to be an embedded object I just need the representation of the excel data. Is is possible to copy a range from excel and then paste the picture of that data into Word using Aspose? Any help is greatly appreciated.


Thank you for additional information. I think you can use Aspsoe.Cells + Aspose.Words to achieve this. There is the demo that show how you can import data from Excel to Word using these components. You can download this demo from here:

http://www.aspose.com/community/files/51/file-format-components/aspose.words-for-.net-and-java/entry112559.aspx

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

I also attached the latest version of Xls2DocConverter class (I updated it to work with the latest versions of Aspose.Words and Aspose.Cells).

Hope this information could be useful for you.

Best regards.

The issues you have found earlier (filed as WORDSNET-1206) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(55)