visio

Choose active page in Visio

怎甘沉沦 提交于 2020-06-29 02:43:05
问题 Edited: I didn't phrase this very will.. I am trying to open Visio (working) and then open a page in the document of my choosing. Thanks Dim FName As String Dim VsApp As Object On Error Resume Next Set VsApp = GetObject(, "Visio.Application") If VsApp Is Nothing Then Set VsApp = CreateObject("Visio.Application") If VsApp Is Nothing Then MsgBox "Can't connect to Visio" Exit Sub End If End If On Error GoTo 0 FName = "C:\myfile.vsd" If Not Intersect(Target, Range("c2")) Is Nothing Then VsApp

Python Visio to pdf

一世执手 提交于 2020-04-14 06:06:10
问题 I'm trying to convert a bunch of Visio files to pdf in python. I have referenced this .doc to pdf using python and written the following code: import comtypes.client as coms format=17 visio = coms.CreateObject('Visio.Application') doc = visio.Documents.Open('map.vsd') doc.SaveAs('map.pdf', FileFormat=format) gives me a TypeError: call takes exactly 2 arguments (3 given) I've been Googling and can't find the reference on how to print to pdf in Visio using python. 回答1: You should use

Programatically create Visio drawing on a linux server

廉价感情. 提交于 2020-02-04 03:46:27
问题 Is it possible to create Visio drawings from a Linux server ? That is, without access to the Visio software. Language can be python, php, C .. 回答1: Short answer : Yes There are a couple of options available to you: 1 - Generate VDX or VSDX files. These are XML-based formats that Visio can read. (VSDX is new and can only be read by Visio 2013). If you can generate XML files on Linux then you can create these files. I wrote such a library that can help create VDX files - Look for

Distributing Visio addin developed in VB6

亡梦爱人 提交于 2020-01-25 04:41:11
问题 I have old VB6 Addin (Visio) source code that generates DLL when compile. I need to distribute this dll to end user, but when I run following command as Administrator on user's PC: regsvr32 MyAddin.dll it throws: The Module "MyAddin.dll" was loaded but the call to DllRegisterServer failed with error code 0x80004005. To debug this I created a new VB6 Addin project, changed Application to "Microsoft Visio" in Connect.Dsr. and tried to installed this dll to fresh windows 10 VM having Visio.

VBA for Visio 2013 to save as SVG

▼魔方 西西 提交于 2020-01-16 00:59:10
问题 I need a macro which will allow me to save the current Visio drawing as an SVG file. The quickest way I can do at the moment is to use the F12 keyboard shortcut which gives me the Save As dialog, but still each time I have to select the proper output file, i.e. PNG, and then write the name of the file. Is it possible to automate this? I was looking for something like Macro recording in Visio, but couldn't find that. 回答1: For file formats of .bmp, .dib, .dwg, .dxf, .emf, .emz, .gif, .htm, .jpg

Data linking between Excel data and Visio/PPt

无人久伴 提交于 2020-01-14 14:58:49
问题 Question: How can we link data from excel sheets to ppt diagrams / visio diagrams ? Diagrams here are data flow diagrams depicting data trasfer between different applications. I am aware that the excel data needs to be formatted but not sure how to go about it and could not find helpful links online. Any light on this would be very helpful. Thank you. 回答1: This can be done in many ways, and with more recent versions (2007 and 2010) you can link data into a Visio diagram without writing any

How to get a nice class diagram for built-in .net classes?

只谈情不闲聊 提交于 2020-01-13 10:21:46
问题 To get an overview for the CodeDom classes in .Net I tried to create a class diagramm using Visual Studio 2010 built-in class designer, but I did not find the way how I could feed the .Net built-in classes and types into it, the only I can get is to add my own classes from Class View window. I also tried it with UML diagramms in VS2010, and I couldn't import the classes. I was looking for a similar option in MS Visio and though it does provide support for class diagramm I could not generate

Are Task Panes Available in Visio VSTO?

雨燕双飞 提交于 2020-01-06 15:21:53
问题 I need create a dockable window for my Visio 2010 add-in developed with VSTO, however I see no way of creating a task pane for Visio. Am I missing something? 回答1: You create dockable windows in Visio. These are "anchor" windows. See this MSDN page: http://msdn.microsoft.com/en-us/library/ff767674.aspx For example: some years ago I created an anchor window to simulate the Office ribbon UI which was not available in Visio 2007 at the time: http://blogs.msdn.com/b/saveenr/archive/2007/02/27

Are Task Panes Available in Visio VSTO?

你。 提交于 2020-01-06 15:21:14
问题 I need create a dockable window for my Visio 2010 add-in developed with VSTO, however I see no way of creating a task pane for Visio. Am I missing something? 回答1: You create dockable windows in Visio. These are "anchor" windows. See this MSDN page: http://msdn.microsoft.com/en-us/library/ff767674.aspx For example: some years ago I created an anchor window to simulate the Office ribbon UI which was not available in Visio 2007 at the time: http://blogs.msdn.com/b/saveenr/archive/2007/02/27

is this a flaw?

折月煮酒 提交于 2020-01-06 13:51:13
问题 In Visio I can only alter one side of the relationship. If I want a "1-M" relationship, I have to choose "Identifying", but this automatically makes the FK becomes PK, which doesn't seem right to me. Someone with the same problem said it was a flaw, so there is no way around it in visio? 回答1: Make sure "Required" is checked for the foreign key column(s) in the column list in the child table. If you do that you should see the relationship depicted as: -II--O<-, which I guess is what you want.