?
Solved

How to Paste a Table with Word Automation

Posted on 2009-05-08
3
Medium Priority
?
305 Views
Last Modified: 2013-11-10
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?
0
Comment
Question by:AIBMass
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 37

Expert Comment

by:Joanne M. Orzech
ID: 24368502
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
0
 

Author Comment

by:AIBMass
ID: 24381123
I am talking about Office automation in VB.Net

Dim Word as application, etc.....


0
 

Accepted Solution

by:
AIBMass earned 0 total points
ID: 24451027
Selection.PasteAndFormat(0)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Progress

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question