VB - Open OOo template with code

Creating a macro - Writing a Script - Using the API

VB - Open OOo template with code

Postby transilvania01 » Fri Jul 28, 2017 5:13 am

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
transilvania01
 
Posts: 1
Joined: Fri Jul 28, 2017 5:07 am

Re: VB - Open OOo template with code

Postby FJCC » Fri Jul 28, 2017 6:23 am

The code will be much the same with the differences explained here.
AOO 3.4 or 4.1 on MS Windows XP ( before 2013-08-03) or Windows 7
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
FJCC
Moderator
 
Posts: 5954
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: VB - Open OOo template with code

Postby Zizi64 » Fri Jul 28, 2017 7:11 am

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; LibreOffice4.4.7 on Win7x64Prof.
And the portable versions: LO3.3.0-LO5.3.4 and AOO4.1.3
Please, edit the topic's initial post, and add the word "[Solved]" at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 5624
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary


Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 6 guests