473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

MailMerging w/ Word 2000

Hey All,

I'm doing something to make this fairly basic thing harder than it should
be. At the end of the code below, while no exceptions are thrown and I'm
getting object references, Word doesn't show having any active or even open
documents. Anyone see what I don't???

object ostrFileName = @"c:\temp\MailLabel5160.doc";
object oboolFalse = false;
object oboolTrue = true;
object ostrNullString = "";
object ointZero = 0;
object owdFormat = Word.WdOpenFormat.wdOpenFormatAuto;

Word.Application wrdLabelMerge = new Word.ApplicationClass();
Word.Document docLabel = wrdLabelMerge.Documents.Open(ref ostrFileName, ref
oboolFalse, ref oboolFalse, ref oboolFalse,
ref ostrNullString, ref ostrNullString, ref oboolFalse, ref
ostrNullString, ref ostrNullString,
ref owdFormat, ref ostrNullString, ref oboolFalse);
docLabel.MailMerge.OpenDataSource(@"C:\temp\Addres sExample.csv",ref
owdFormat,ref oboolFalse,
ref oboolFalse, ref oboolTrue, ref oboolFalse, ref ostrNullString, ref
ostrNullString,
ref oboolFalse, ref ostrNullString, ref ostrNullString, ref
ostrNullString, ref ostrNullString, ref ostrNullString);

TIA,

John
Jul 21 '05 #1
0 887

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Petey | last post by:
Hi there! I am trying to print a document after merging some data into it using PHP COM and it seems to be very tempremental and doesn't work at all over network printers. When I say...
2
by: Mystery Man | last post by:
We are developing a C# application that has many interfaces to the Microsoft suite (eg Word, Excel, Outlook, Powerpoint, etc). We need to support Office 97, 2000, 2002 and any future versions. ...
16
by: Simon Verona | last post by:
I have a problem with automating MS Word through vb.net My code is : Dim objword As new Word.ApplicationClass Try objWord.Documents.Open(letterfile)...
0
by: John Spiegel | last post by:
Hey All, I'm doing something to make this fairly basic thing harder than it should be. At the end of the code below, while no exceptions are thrown and I'm getting object references, Word...
7
by: Dave | last post by:
Apologies for the newbie question. I have created a vb.net program for my company that is designed to work with Word Templates (about forty of them that we commonly use) that are selected by the...
4
by: Lyle Fairfield | last post by:
I asked this question in Microsoft.Public.Word two days ago but I have not received an answer. I believe there are Office Experts here who may be able to help. --------- "A friend has Office...
1
by: Matt | last post by:
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...
2
by: JeffN825 | last post by:
Hello, Thank you in advance for any assistance. I am trying to set up a mail merge from VB6/VBA code with Word 2000 using an ODBC data source (SQL 2000). I have successfully gotten the...
1
by: bogorman | last post by:
I am using the following coding: Dim strWordDocFile As System.String = Me.txtLetter.Text Dim WordDocFile As New System.IO.FileInfo(strWordDocFile) Dim Msg As String Dim...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.