Shape Report as Visio shape placed on page-2 of document

Started by Nbove, October 01, 2020, 07:37:31 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nbove

Quick question here, I have a script that is tied to a user interface button on the page.

Visio.Application.Addons("VisRpt").Run ("/rptDefName=ADMIN/rptOutput=EXCEL_Shape")

I want this report to placed on page-2 of my visio drawing, at set locations.
Currently I have recorded a macro where I do it manually, and it calls out the specific itemfromID(#). But the ID of the shape report table can be changed and isnt a static number.
Is there a way to have the report immediately placed on p2?

Surrogate

This report created by build-in addon, which add this report to active page. And addon have not opportunity change reports location (page where report will be inserted).

Can you share there your code with itemfromID?