-
FlexPro
- Zoom sur FlexPro
- Fonctionnalités & Options
- Domaines d’application
- Tous les avantages
- Nouveau dans FlexPro 2021
- Testez FlexPro gratuitement
- FlexPro View OEM Freeware
- Conseils d’achat
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produits
- News
- Support
- Société
- Emplois
- Contact
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
Accueil > Community > Automation and VBA > How to call Flexpro in visual basic 2013? > Reply To: How to call Flexpro in visual basic 2013?
December 1, 2014 at 8:52 am
#9374
Bernhard Kantz
Participant
After adding the reference to the FlexPro Object Library (e.g. via the type library flexpro.tlb found in the installation folder) one can access the object model. To get an application pointer, one can use the following code:
Dim app As FlexPro.Application
Set app = CreateObject("FlexPro.Application")
To attach to a already running instance GetObject(, “FlexPro.Application”) can be used instead.
To add a new project database, one can use
Dim oDatabase As FlexPro.Database
Set oDatabase = app.Databases.Add
Now one can start adding objects (like folders, formulas, datasets, diagrams, …) to its RootFolder and perform updates (to cause calculations). The database can then be saved and closed with the respective methods.