Link to home
Start Free TrialLog in
Avatar of AIBMass
AIBMass

asked on

How to Paste a Table with Word Automation

I am doing Word (2003) automation. In my app, I have two documents open. Doc1 contains this string: **SOURCEINFO**.

Doc2 is a document that contains formatted text and multiple tables.

I want to replace the string **SOURCEINFO** in Doc1 with the entirety of Doc2.

Can you show me the best way that preserves all the formatting in Doc2?
Avatar of Joanne M. Orzech
Joanne M. Orzech
Flag of United States of America image

I'm not quite sure I understand your question completely - what type of automation are you talking about?  VB?  

Or you could always use the INCLUDETEXT field code....
http://daiya.mvps.org/includetext.htm
Avatar of AIBMass
AIBMass

ASKER

I am talking about Office automation in VB.Net

Dim Word as application, etc.....


ASKER CERTIFIED SOLUTION
Avatar of AIBMass
AIBMass

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial