Mailmerging to a pre-defined template

  • Thread starter Thread starter Matt
  • Start date Start date
M

Matt

Morning all,

I'm putting together an App that reads data from a database and then,
depending on the users decision, outputs the data to a mailmerge
document for either an address label or an envelope.

I've found the article at http://support.microsoft.com/kb/301659
however I can't see anywhere in the code to specify the format for the
document, i.e. Avery Label code or even Cell Size to make up the
template. I also can't see anything about selecting a C5/C4 envelope
size.

Can someone please give me some pointers?

Cheers,

Matt
 
Matt,

What you can use is Interop with Word in your C# code. What I recommend you,
which I normally do, is to record a macro on Word doing what you want to do
and then translate that to c# code. Always works.

Rgs,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top