For Programmers: Free Programming Magazines  


Home > Archive > VC STL > February 2006 > office automation help please.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author office automation help please.
electrixnow

2006-02-12, 3:59 am

I need some help on automation for office. I found some code I want to
use, it looks like this:

Variant wordTables = wordActiveDocument.OlePropertyGet( "Tables" );
long table_count = wordTables.OlePropertyGet( "count" );

There is more, it deals with OBJECTS. I have installed Visual C++
Express Edition
and the Platform SDK for VC++. I wrote a VC++ program that
needs to update bookmarks in a MS Word doc, and then print it. I must
do all of this without showing the GUI of MS Word. I posted before and
have had suggestions to use code samples from www.codeproject.com but
have not found any for VC++.

I tried some of the code but did'nt have the correct libraries.

Does anyone know how to use VC++ to accomplish these automation tasks?

Please Help!

Thanks in advance,

Carl Daniel [VC++ MVP]

2006-02-12, 3:59 am

electrixnow wrote:
> I need some help on automation for office. I found some code I want to
> use, it looks like this:
>
> Variant wordTables = wordActiveDocument.OlePropertyGet( "Tables" );
> long table_count = wordTables.OlePropertyGet( "count" );
>
> There is more, it deals with OBJECTS. I have installed Visual C++
> Express Edition
> and the Platform SDK for VC++. I wrote a VC++ program that
> needs to update bookmarks in a MS Word doc, and then print it. I must
> do all of this without showing the GUI of MS Word. I posted before and
> have had suggestions to use code samples from www.codeproject.com but
> have not found any for VC++.
>
> I tried some of the code but did'nt have the correct libraries.
>
> Does anyone know how to use VC++ to accomplish these automation tasks?


This newsgroup is for questions about using the STL with VC++. Please post
this question to microsoft.public.vc.language, or
microsoft.public.office.developer.automation.

-cd


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com