Is there any way to export sequence diagram generated by visual studio?

给你一囗甜甜゛ 提交于 2020-01-11 08:15:27

问题


I am using Generate Sequence Diagram feature of Visual Studio.

I have to show my sequence diagram to someone who don't have Visual Studio Ultimate Edition

Is there any way to export the sequence diagram to any format so that it can be viewed outside Visual Studio?


回答1:


This answer works in VS 2012:

  1. Open the sequence diagram
  2. select the whole diagram by CTRL+A
  3. copy it to the clipboard -> CTRL+C
  4. go to an open MS-Word document and hit CTRL+V to paste it

the diagram is pasted and you can perform image editing, printing, etc. there




回答2:


I tried again with approach mentioned in this link posted by Bolu

I played with the print options and selected the largest available paper size.

It is working for now but I am afraid for large diagrams it might fail




回答3:


Haris didn't really explain his answer in any detail, and the link isn't really very clear either, but it seems that the solution is to print-to-XPS-file. This worked for me and the XPS file can be converted to another file format fairly readily.




回答4:


Printing as PDF works well (using CutePDF for example).




回答5:


Maybe it's a bit of a 'trick' but you always can make a screenshot (control or alt + PrtScreen), copy it to mspaint and save it as a bitmap/png file.



来源:https://stackoverflow.com/questions/9197188/is-there-any-way-to-export-sequence-diagram-generated-by-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!