Reply
 
Thread Tools Display Modes
  #1   Report Post  
Csabi
 
Posts: n/a
Default Using MailMerge from C#.NET

Hi!

I would like to insert data (text) into Word document with the MailMerge
functionality.

Is it possible to do this without using DataSources!? It would be nice, to
iterate through the MailMerge.Fields and insert data text) into their
position.

I tried to do this :

int x = 0;

Range rng = MailMerge.Fields[x].Code;
rng.Text = "New Text";

The 'rng' object is valid, becasue it's text contains " MERGEFIELD \"Name\"
", butif I set it's Text property to the new value, still the field is shown
in Word.

Any help or solution anyone!?

Also is it possible to create a datasource to use MailMerge which is not an
exact file ?! I red that OLEDB, ODBC and DDE can be used as datasources, but
they all point to ane xisting file. I'm not getting the isnertable data from
a file, so I would need a different solution.

Thanks!
Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailmerge Robert Mailmerge 0 August 19th 05 12:24 AM
Trying to suppress Select Table box in Excel-Word mailmerge Denise Mailmerge 4 June 21st 05 01:08 PM
Protect mailmerge document BillM Mailmerge 1 June 9th 05 12:58 PM
Textboxes in Mailmerge? zSplash Mailmerge 5 March 22nd 05 09:01 PM
Included Property in Word 2003 MailMerge Alessio Mailmerge 1 December 23rd 04 11:26 AM


All times are GMT +1. The time now is 01:31 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"