COM interop

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
jsacksteder
Posts: 1
Joined: Wed Jul 02, 2008 8:10 am

COM interop

Post by jsacksteder »

I have an application that uses Word as a printing engine for standardized forms. The mechanism used to start Word and print the documents is COM. Is there way to invoke Writer instead?
OOo 2.3.X on Ms Windows XP
B Marcelly
Volunteer
Posts: 1160
Joined: Mon Oct 08, 2007 1:26 am
Location: France, Paris area

Re: COM interop

Post by B Marcelly »

Hi,
Writer (or Calc, etc) can be used through COM. And printing a document from it is of course possible.

You may have difficulties with some languages which do not provide a correct interface to COM.
For a general view, see the beginning of this old thread : Using COM for OOo with different language

You may also use these open source tools :
Delphi OOo tool
VBx OOo tools (for VBA, VB.NET, VB6)

______
Bernard
Post Reply