Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi,

 

I've had a look on the Microsoft website, but haven't really gotten anywhere with this..... so back to the best place to get a question answered - XtremeVB!

 

I'm looking at the best way to do a Merge with Word, from a Dataset in .NET to a .dot template. The .dot template can contain a table which will have multiple lines (e.g. if it is Orders, the table will have one line with the fields in it, but will grow depending on the number of Order lines).

 

At the moment I'm converting the Dataset to XML (using WriteXML), and using a component which opens up Word as a object, then replaces each field one-by-one. The thing is it's very slow, programmatically replacing all the fields in a large document can take some time......

 

There must be a better, faster way to do this? I'm thinking there is a function in Word Automation to give it an XML file to merge itself, which would mean Word doing the work and not the communication between .NET and Word line by line.

 

Any suggestions?

What if the Hokey-Pokey IS what it's all about?
  • 2 weeks later...
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...