none
How to modify OleObject in WORD and put it back in word to save. RRS feed

  • Question

  • My project need modify Excel in WORD ,i don't know how to put it back in word.

    I read the excel from the word and save it to the external folder, and I want to put it back to the word after the modification, but it will report the error.The error is"The file ***.docx cannot be opened because there are problems with the contens"

    how should i operate Ole in WORD?

    Friday, August 3, 2018 6:13 AM

All replies

  • Hi,

    Check if this helps:

    https://www.e-iceblue.com/Tutorials/Spire.Doc/Spire.Doc-Program-Guide/Others/How-to-Extract-OLE-Objects-from-a-Word-Document.html

    https://www.e-iceblue.com/Tutorials/Spire.Doc/Spire.Doc-Program-Guide/NET-Word-Insert-OLE-Object-in-Word-with-C-VB.NET.html

    Friday, August 3, 2018 9:10 AM
  • Hi 陈龙龙龙,

    Thank you for posting here.

    Since your question is more related to word, I will move it to Word for development forum for suitable support.

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=worddev&filter=alltypes&sort=lastpostdesc

    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions.

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, August 6, 2018 8:00 AM
  • Hello 陈龙龙龙,

    How do you read excel form word? Are you operating an embedded excel workbook in a word document? How do you put it back to the word? Is there any related code?

    Best Regards,

    Terry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, August 7, 2018 1:20 AM
  • My project need modify Excel in WORD ,i don't know how to put it back in word.

    I read the excel from the word and save it to the external folder, and I want to put it back to the word after the modification, but it will report the error.The error is"The file ***.docx cannot be opened because there are problems with the contens"

    Instead of saving the OLE Object, simply close it; the changes will automatically update your Word document.

    Cheers
    Paul Edstein
    [MS MVP - Word]

    Tuesday, August 7, 2018 3:35 AM
  • It will help us to help you if you could provide the basic code for how you're working with the embedded Excel file (OLE object).

    Cindy Meister, Office Developer/Word MVP, <a href="http://blogs.msmvps.com/wordmeister"> my blog</a>

    Wednesday, August 8, 2018 4:54 PM
    Moderator