473,387 Members | 1,517 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,387 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
Nov 22 '05 #1
0 747

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...
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...
0
by: Sudipto Sen | last post by:
================== Problem Description ================== Following code is for 1. Load a Word Template called CustomerInfo1.dot 2. CustomerInfo1.dot is a normal Word Template with Form fields...
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)...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.