VB - Open OOo template with code

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
transilvania01
Posts: 1
Joined: Fri Jul 28, 2017 5:07 am

VB - Open OOo template with code

Post by transilvania01 »

Im developing a vb app and want to open an OOo template in order to put data onto, found some code but in StarBasic but dont know how to do it with Visual Basic, someone can help me?
OpenOffice 4 on Windows 7
FJCC
Moderator
Posts: 9274
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: VB - Open OOo template with code

Post by FJCC »

The code will be much the same with the differences explained here.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
User avatar
Zizi64
Volunteer
Posts: 11359
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: VB - Open OOo template with code

Post by Zizi64 »

found some code but in StarBasic but dont know how to do it with Visual Basic,
You need call the API (Application Programming Interface) FUNCTIONS fro all of the supported programming languages for the control of the office suite.
Therefore you need study the API functions of the AOO or LO first. And then you need study: how you can use these functions in your VB code.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Post Reply