Visio reports

Add-in Express™ Support Service
That's what is more important than anything else

Visio reports
Visio reports 
Alexander Feduleev




Posts: 4
Joined: 2011-12-09
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
Posted 09 Dec, 2011 05:11:59 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
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 Getting help with COM objects, properties and methods 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.
.NET, Extended MAPI, Windows Phone & RT
Posted 09 Dec, 2011 06:14:02 Top
Alexander Feduleev




Posts: 4
Joined: 2011-12-09
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
Posted 09 Dec, 2011 06:16:41 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Alexander,

Thank you for sharing the solution for other forum readers!
.NET, Extended MAPI, Windows Phone & RT
Posted 09 Dec, 2011 06:22:24 Top