473,507 Members | 12,693 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Automation Problems

I am about to pull my hair out!

I have VS 2005 PRO and I am coding in C++
I have a console program that parses data and creates a text output. I
need to use MSWords mailmerge to merge the text output and save the doc
for emailing later. I have a macro in MSWord that merges the data from
the textfile with the doc.

I have looked everywhere and have found many samples and even a program
called B2C.EXE from microsofts MSDN website. B2C does convert but it is
old and I get errors when compiling or if I do get it to compile it
launches word and errors when trying to open a new document.

I have just started using Visual Studio and don't know all of my
options. I have my main program complete in VC++ that runs as a
console apt. I would like add the merge part to it.
I can fire off a separate command line command for windows that runs
msword with script but it shows the mswindow and I loose control and
cannot detect errors. I have'nt coded in years and I need some good
examples that compile in VC++ 2005

Thanks in advance.

GC

Mar 5 '06 #1
2 1761
* electrixnow:
[off-topic]


Try over in [comp.os.ms-windows.programmer.win32].
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Mar 5 '06 #2
TB
electrixnow skrev:
I am about to pull my hair out!

I have VS 2005 PRO and I am coding in C++
I have a console program that parses data and creates a text output. I
need to use MSWords mailmerge to merge the text output and save the doc
for emailing later. I have a macro in MSWord that merges the data from
the textfile with the doc.

I have looked everywhere and have found many samples and even a program
called B2C.EXE from microsofts MSDN website. B2C does convert but it is
old and I get errors when compiling or if I do get it to compile it
launches word and errors when trying to open a new document.

I have just started using Visual Studio and don't know all of my
options. I have my main program complete in VC++ that runs as a
console apt. I would like add the merge part to it.
I can fire off a separate command line command for windows that runs
msword with script but it shows the mswindow and I loose control and
cannot detect errors. I have'nt coded in years and I need some good
examples that compile in VC++ 2005

Thanks in advance.

GC


I wonder how many times you asked about automation in this group now?

Buy a frakking book, Microsoft Press has many.

--
TB @ SWEDEN
Mar 6 '06 #3

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

Similar topics

15
5819
by: qwweeeit | last post by:
Hi all, Elliot Temple on the 1 June wrote: > How do I make Python press a button on a webpage? I looked at > urllib, but I only see how to open a URL with that. I searched > google but no...
2
4329
by: Andante.in.Blue | last post by:
Our Access 97 database is a single-file (non-splitted, pure Access) hosted no a network server, accessed regularly by a handful of users around the office. Until recently (until the Great...
25
3696
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
12
5503
by: Cheval | last post by:
Has anyone had any problems with inter-office automation between MS Word and MS Access in Office 2003? I have recently installed office 2003 in a new folder and have left the older office 2000...
2
1926
by: M. C | last post by:
Hello, Since I installed Office 2003, I'm experiencing problems with an automation procedure in Access (created in Access 2000) that colonizes fields in a Word merge file. I keep getting a...
7
5315
by: taylor.bryant | last post by:
I am running: Win XP SP2 Excel 2002, Access 2002 (Office XP SP3) Using Visual Basic (not VB.NET) At one point (prior to XP SP2?!? - I can't pin it down), this did not happen and I was easily...
17
6302
by: Mansi | last post by:
I need to do some research on how to use excel automation from c#. Does anyone know of any good books related to this subject? Thanks. Mansi
16
2944
by: RichardP | last post by:
Hi there everyone - I'm new to this forum. I am having an issue when running an application from an instance of Access which has been started through automation (early or late bound, makes no...
22
2242
by: liya.tansky | last post by:
Hello, I'm developing an intranet (win XP, .NET 2, Visual Studio 2005, Microsoft.Office.Interop.Word.dll in references) and needed to implement find-replace in word doc before sending letter and...
8
1795
by: =?Utf-8?B?QmFkaXM=?= | last post by:
I have tried a server-side automation and it's giving me problems that I couldn't solve.. Now, I'm switching to client side automation and I was following this example:...
0
7223
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
7314
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,...
1
7030
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...
1
5041
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...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.