visio

Visio 2007 - how to export ERD to sqlserver schema

删除回忆录丶 提交于 2019-12-11 16:32:02
问题 I've hit a minor brick wall here in Visio. I've got a project that I'm running that's hosted under sqlserver and is subject to lots of model changes in Visio 2007 (via a 3rd party). The problem for me is that due to visio 2007 not allowing me to export the ERD (supplied by the 3rd party), I have to scan the model and manually update the database with the new/amended properties. As you can imagine, not a task for the faint hearted, especially as the table count has gone beyond 50 in this

C# Visio Containers

做~自己de王妃 提交于 2019-12-11 16:22:01
问题 I am struggling getting to the contents (children) of a Container using C#. Works fine if just drawn on the page, but once converted to a master, it is no longer recognized as a 'container'. So, for example. Create a new container from the 'Insert' tab. From the 'Home' tab, draw 2 rectangles in the container, type some text in each, and then 'add to underlying container'. After this, the code below reports the 2 rectangle Names & Texts. However, I now drag the container into my stencil to

how to use Page.getResults in VB.Net for Visio Automation

帅比萌擦擦* 提交于 2019-12-11 11:58:41
问题 Migrating my VB code to VB.net for Visio Automation. I am getting error in Page.GetResults "Specified array was not of the expected type". I guess the Error is with Variant but i could not get resolved. Thanks for any Help 回答1: If you browse the sourcecode of this codeplex project you'll find a VB sample for Page.GetResults using Visual Studio 2010. It's in a file called "VS2010_VB_Samples.vb" I've included the source code below. The example is meant to teach how to use the API. It is not '

C# - Is there any OnShapeMoved or OnShapeDeleted event in Visio?

家住魔仙堡 提交于 2019-12-11 08:08:43
问题 I think the title or the question is clear enough. I saw something about the EventSink, but I found it difficult to use. Any hint? 回答1: I believe that you have to implement EvenSink to get access to "ShapesDeleted", i.e. (short)Microsoft.Office.Interop.Visio.VisEventCodes.visEvtCodeShapeDelete the code above will help you if you are looking for the event "BeforeShapeDelete" not the "after"ShapeDelete ;) 回答2: The Visio Primary Interop Assembly exposes these events as C# events therefore you

Inserting Jpeg image onto Visio drawing programmatically in C# or VBA

﹥>﹥吖頭↗ 提交于 2019-12-11 06:54:45
问题 Is there any way to insert an jpeg image onto the visio using C# or VBA? After inserting is there a way to format it properties like width, height, position to place on the drawing? 回答1: When images are imported into Visio they get wrapped up into a standard shape (with a Type property of visTypeForeignObject). From there you're just talking to cells in the ShapeSheet. (See this post for more details on the ShapeSheet http://visualsignals.typepad.co.uk/vislog/2007/10/just-for-starte.html) So,

Finding id of shape dragged onto screen in Visio using VBA macro

喜欢而已 提交于 2019-12-11 06:46:18
问题 I currently have a program in Visio that when a specific shape in my custom stencil is dragged onto the screen, a user form comes up and asks the user a question with a combo box used for the user to select an answer. Based on the answer selected, the shape data should change for that object. The problem that I am facing is that I am not sure how to target the ID of the shape automatically to then change its shape data. Since multiple of these shapes may be placed, I can not manually write a

Basic Database Design - Optional Participation

微笑、不失礼 提交于 2019-12-11 06:28:08
问题 Working on basic database design homework and ERD drawing in Visio, and can't wrap my head around this problem. United Helpers is a nonprofit organization that provides aid to people after natural disasters. Based on the following brief description of operations, create the appropriate fully labeled Crow’s Foot ERD. •Individuals volunteer their time to carry out the tasks of the organization. The name, address, and telephone number for each volunteer are tracked. Each volunteer may be

Double-click event on a Visio shape

血红的双手。 提交于 2019-12-11 04:14:45
问题 How can I catch a double click event on a Visio shape? I would like to display some properties when the user double-click on the shape but to do so I first need to catch this event. Any suggestion is very welcome. Thanks a lot. P.S. I use C# + Visio 2007 SDK. 回答1: I'm not sure there is a double click event available in the Visio API. I've never seen one. You can, however, set up a shape to report a double click to some code procedure, through the shapesheet window. To get there, select a

how to develop an add-in for visio

无人久伴 提交于 2019-12-11 03:38:53
问题 I want to create an add-in to visio so that I can draw BPMN diagrams (Business Process Modeling Notation). A similar work is available here: http://www.interfacing.com/free-visio-bpmn-modeler. But I want to create my own icons(notations) and make it domain specific. Please help me? How can I do this? What languages do I have to use? 回答1: You can develop add-ins for Visio using the Visio SDK. There are several versions, of which the 2010 SDK is the most recent. It contains samples written in C

Cannot open Visio document with Python

女生的网名这么多〃 提交于 2019-12-11 02:34:39
问题 I am attempting to do some automation in Visio using Python. I am able to open the Visio application and create a new document, but cannot open an existing document. Here is the code that I am trying. import win32com.client visio = win32com.client.Dispatch("Visio.Application") # this works doc = visio.Documents.Open("C:\Users\username\test.vsd") # nope The error I get back is Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<COMObject <unknown>>", line 3, in OpenEx