Solved

How to Paste a Table with Word Automation

Posted on 2009-05-08
3
287 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
  • 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

A short article about problems I had with the new location API and permissions in Marshmallow
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 video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

813 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now