Alexander Feduleev
Guest
|
Hi,
Thank you for your product.
I made toolbars for all versions of Visio and it works greate!!
I know you are a Guru in Office applicatons.
But now I have a problem. I need run visio document report when user press button on my toolbar.
so question is: Are any variants to get :
1) List of reports in current visio documents ?
2) Add new report or import it from previous saved VRD file ?
3)
Best Regards,
Alexander Feduleev |
|
Eugene Astafiev
Guest
|
Hi Alexander,
1. Please take a look at the Pages property of the Document class in Visio.
2. The Pages collection provides the Add method. Is it what you are looking for?
Anyway, please take a look at the http://www.add-in-express.com/docs/net-tips.php#getting-help section in the online documentation. It states:
To get assistance with host applications?Â?Ð?é objects, their properties, and methods as well as help info, use the Object Browser. Go to the VBA environment (in the host application, choose menu Tools | Macro | Visual Basic Editor or just press {Alt+F11}), press {F2}, select the host application in the topmost combo and/or specify a search string in the search combo. Select a class /property /method and press {F1} to get the help topic that relates to the object. |
|
Alexander Feduleev
Guest
|
Hi,
Thank you Eugene,
I'm found another way, maybe it will be helpful for anybody.
VisioApp.Application.Addons("VisRpt").Run("/rptDefName=" + strVRDFileName)
strVRDFileName is path to previous saved VRD file from Visio
It works fine.
Best Regards,
Alex |
|
Eugene Astafiev
Guest
|
Hi Alexander,
Thank you for sharing the solution for other forum readers! |
|