Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Visio Export - Your Suggestions Please (Read 2367 times)
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Visio Export - Your Suggestions Please
Oct 7th, 2013 at 11:00pm
Print Post  
Hi,

I do not see a lot of buzz about Visio on the forums; at least the asp.net ones where I hang my hat.

Have a look at the attached pdf export of one of our diagrams (page 1). Looks pretty good and very close to what I see onscreen when I render the diagram.

Now look at the screenshot of a Visio export file opened in Visio 2003.
Not at all usable!

As you know, we're using some custom images within shapes as well as images that have been AttachedTo shapes and links.

Is there something I need to be doing to improve the appearance of the Visio exported file?

Thanks for any advice on this subject.

Jim

PS: Here's the code I use to produce the exported file:

Code
Select All
        Diagram diagram;
        diagram = DiagramView1.Diagram;
        MindFusion.Diagramming.Export.VisioExporter visio = new MindFusion.Diagramming.Export.VisioExporter();
        visio.TemplatePath = Server.MapPath(@"~\Bin\visioExport.vxt");
        visio.ExportLanes = ExportLanes.Horizontal;
        visio.LaneGridTitle = Session["P_CFFD_CurrentActivityName"].ToString();

        String filename = CleanFileName(Session["P_CFFD_CurrentActivityName"].ToString()) + " - " + DateTime.Now.ToString("ddMMMyyyy-HHmm-ss") + ".vdx";
        String path = Server.MapPath(@"~\ExternalDocs\") + filename;
        Diagram fixedDiag = fixAmpersands(diagram); // JJ - 11Sep2012 - The Visio exporter is not happy dealing with ampersands in the swimlane titles (role names), so this routine changes & to &

        visio.Export(fixedDiag, path);
 

  

1_0_Activity_1_-_07Oct2013-1832-53.rar (Attachment deleted)
1_0_Activity_1_-_07Oct2013-1832-53.png (Attachment deleted)
Fall_Release_2013_-_Take_II_-_07Oct2013-1856-27.pdf (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Visio Export - Your Suggestions Please
Reply #1 - Oct 8th, 2013 at 8:36am
Print Post  
Hi,

PDF files consist of low-level graphic primitives, and the control implements a PdfGraphics class that generates PDF markup for everything your draw in the diagram, including derived item types that override the Draw method, or ones custom-drawn via the DrawNode / DrawLink events.

On the other hand, Visio files consist of higher-level XML elements that map to Visio stencil objects and only list properties defined for them. Any graphics you draw yourself (such as the custom-drawn link images) will be lost. You should be able to see these images in Visio if you implement them via attached nodes with bitmaps instead. In addition, there is no full correspondence between NetDiagram's shapes and Visio ones, for example there are no standard Bpmn stencils, so some shapes are replaced by rectangles. If you have your own Bpmn stencils or would like to use third-party ones, we could add for next release an event that lets you map custom stencils to exported NetDiagram shapes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint