Page Index Toggle Pages: 1 ... 12 13 [14] 15 16 ... 21 Send TopicPrint
Locked Topic Link between two nodes (Read 129253 times)
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #195 - Jul 21st, 2014 at 12:51pm
 
Hello,

Actually i am exporting my flowchart to PDF and its working fine, but i want to show dialogbox to user to add file name and to select location.

Can you tell me how i can implement this in my code ?.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #196 - Jul 21st, 2014 at 1:28pm
 
Hi,

Try the solution from following post, only change the media type to "application/pdf" and append the PDF file data instead of CSV records:
http://sandeep-tada.blogspot.com/2012/10/c-export-to-excel-file-and-save-with.ht...

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #197 - Jul 22nd, 2014 at 4:09am
 
Stoyo wrote on Jul 21st, 2014 at 1:28pm:
Hi,

Try the solution from following post, only change the media type to "application/pdf" and append the PDF file data instead of CSV records:
http://sandeep-tada.blogspot.com/2012/10/c-export-to-excel-file-and-save-with.ht...

I hope that helps,
Stoyan


Not in this way i want proper savedialogbox which is from visual studio.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #198 - Jul 22nd, 2014 at 7:09am
 
I think there's save file dialog component only for desktop applications. From ASP.NET you will have to set the content type and return http file response, which should make the browser show its own save dialog. You can find an example that sends PDF files from server here, forcing a save dialog instead of letting the browser open the PDF directly:
http://aspalliance.com/259
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #199 - Jul 23rd, 2014 at 10:31am
 
Hello,

I want to generate multiple VISIO files at once without loading XML file in diagram control, How I can implement ?

and I want to implement this windows not in asp.net its C# windows forms.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #200 - Jul 23rd, 2014 at 10:31am
 
Stoyo wrote on Jul 22nd, 2014 at 7:09am:
I think there's save file dialog component only for desktop applications. From ASP.NET you will have to set the content type and return http file response, which should make the browser show its own save dialog. You can find an example that sends PDF files from server here, forcing a save dialog instead of letting the browser open the PDF directly:
http://aspalliance.com/259


Okay, Thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #201 - Jul 23rd, 2014 at 10:45am
 
shrinivas wrote on Jul 23rd, 2014 at 10:31am:
Hello, I want to generate multiple VISIO files at once without loading XML file in diagram control, How I can implement ? and I want to implement this windows not in asp.net its C# windows forms.


You could use our Windows Forms component, build a diagram model (using same API as ASP.NET's Diagram class) and export it with VisioExporter. If you don't want to use the Diagram control at all, you will have to build the Visio XML yourself by its file format specification (http://msdn.microsoft.com/en-us/library/ms426602(v=office.12).aspx) or use another library.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #202 - Jul 23rd, 2014 at 11:40am
 
Is it possible to embed MindFusion XML to VISIO XML in C#, if yes then how?

I mean is there any utility or something else to do?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #203 - Jul 23rd, 2014 at 2:02pm
 
Using the XmlDocument API you could move the XML content saved by the diagram to a child element of the Visio document after exporting:

Code
Select All
VisioExporter vex = new VisioExporter();
vex.ExportInvisibleItems = false;
vex.ExportTablesAsGroups = true;
vex.DynamicsOff = true;
vex.Export(diagram, sfd.FileName);

var visioDoc = new XmlDocument();
visioDoc.Load(sfd.FileName);

var diagDoc = new XmlDocument();
diagram.SaveToXml(diagDoc);

var diagElement = visioDoc.ImportNode(
	diagDoc.DocumentElement, true);
visioDoc.DocumentElement.AppendChild(diagElement);
visioDoc.Save(sfd.FileName);
 



and later load like this

Code
Select All
var visioDoc = new XmlDocument();
visioDoc.Load(fileName);
var diagElement = visioDoc.GetElementsByTagName("Diagram")[0];
var diagDoc = new XmlDocument();
diagElement = diagDoc.ImportNode(diagElement, true);
diagDoc.AppendChild(diagElement);
diagram.LoadFromXml(diagDoc); 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #204 - Jul 24th, 2014 at 4:37am
 
Here you are using,

vex.Export(diagram, sfd.FileName);

diagram is object of canvas control right and what is mean by sfd.FileName ?

and code is of web or windows?

please mention all in details .
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #205 - Jul 24th, 2014 at 4:49am
 
sfd.FileName is the file path for exported Visio file selected via Windows Forms SaveFileDialog. diagram is a Diagram instance.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #206 - Jul 24th, 2014 at 5:25am
 
Stoyo wrote on Jul 24th, 2014 at 4:49am:
sfd.FileName is the file path for exported Visio file selected via Windows Forms SaveFileDialog. diagram is a Diagram instance.


It means sfd.FileName is XML file path right
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #207 - Jul 24th, 2014 at 5:44am
 
It's the path for the exported Visio VDX file. Then the diagram's XML is appended to it via intermediate XmlDocument, without actually saving the diagram to a separate file.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #208 - Jul 24th, 2014 at 6:35am
 
Can u send me link to download windows MindFusion diagramming exe or all dll those required for that.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #209 - Jul 24th, 2014 at 7:21am
 
You can use the diagramming.dll and export.visio.dll from ASP.NET version in your WinForms application if all you need is exporting to Visio, just add references to them to your project. The WinForms and ASP.NET versions include the same model and import/export assemblies, they only differ in the view-specific assemblies that build upon the respective UI platform, e.g. diagramming.winforms.dll and diagramming.webforms.dll.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 ... 12 13 [14] 15 16 ... 21
Send TopicPrint