English 中文(简体)
Interop, undo ack
原标题:Interop, undo all actions in word undo stack

I am using c# and word interop. How can I, programmatically, undo all actions in word undo stack?

在这方面。

问题回答

这里的解决办法是:

object times = 1;
while (worDocument.Undo(ref times))
{}

但在此之前,诸如ControlBeforeDelete、内容ControlOnEnter和内容ControlOn 否则就必须取消冻结字(http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/50a96ba1-85e3-498f-89-41220a565f)。





相关问题
WORD 2007 w/VBA

I have a question regarding a WORD 2007 form used to gather information from users. I had it working in WORD 2003 then pulled it over into WORD 2007 and got it working but couldn t leave well enough ...

Word opens extra blank document

I have an issue on a client machine that seems to be interferring with a word addin that ive built. When any word document opens on the client machine, a second blank document opens also. Ive seen ...

MS Word splits words in its XML format

I have a Word 2003 document saved as a XML in WordProcessingML format. It contains few placeholders which will be dynamically replaced by an appropriate content. But, the problem is that Word ...

Creating & Editing MS-Word documents on a linux server?

Looking to develop server-side application that will process documents. The source documents are mostly MS-Word 2003, 2007, i.e. the MS version of Docx. Want the server application to be able to run ...

Word document printed on MS Access report using OLE object

For years, we have been printing Word 2003 documents that have been saved to a OLE object column using an access report. We are using Access 2003. For some reason when we copy a Word 2003 document ...

热门标签