Page Index Toggle Pages: 1 ... 15 16 [17] 18 19 ... 21 Send TopicPrint
Locked Topic Link between two nodes (Read 129239 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #240 - Aug 1st, 2014 at 9:34am
 
You can find list of available shapes in the Flowcharter example here -
http://www.mindfusion.co/demos/index.html?Control=Diagramming
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #241 - Aug 1st, 2014 at 9:39am
 
shrinivas wrote on Aug 1st, 2014 at 8:53am:
Can you tell me list of different shapes, I want to add It using XML

like <Shape Id="Rectangle" />

I want shape for ellipse,hexagon,trapezoid,parallelogram,diamond,etc


Got It
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #242 - Aug 1st, 2014 at 11:45am
 
I have attached 2 XML files in that CRDD660.XML is generated by me and another one CRDD660_New is generated by following code.

So here problem is in my XML I am adding different shapes but its not taking that shape converting to only roundedrectangle can u please check and tell me whats the problem

Code :
sVDXFilePath = System.IO.Path.GetDirectoryName(sXMLFilePath) + "\\" + System.IO.Path.GetFileNameWithoutExtension(sXMLFilePath) + ".VDX";
                dc.LoadFromXml(sXMLFilePath);
                dc.SaveToXml(sXMLFilePath);
                MindFusion.Diagramming.Layout.DecisionLayout dl = new MindFusion.Diagramming.Layout.DecisionLayout();
                dl.Orientation = MindFusion.Diagramming.Layout.Orientation.Vertical;
                dl.HorizontalPadding = 10;
                dl.VerticalPadding = 10;
                dl.Arrange(dc);
                vex.ExportInvisibleItems = false;
                vex.ExportTablesAsGroups = true;
                vex.DynamicsOff = true;
                vex.Export(dc, sVDXFilePath);
                visioDoc.Load(sVDXFilePath);
                dc.SaveToXml(diagDoc);
                var diagElement = visioDoc.ImportNode(diagDoc.DocumentElement, true);
                visioDoc.DocumentElement.AppendChild(diagElement);
                visioDoc.Save(sVDXFilePath);
                visioDoc.Load(sVDXFilePath);
  

XML.zip (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #243 - Aug 1st, 2014 at 12:03pm
 
Shape identifiers are case sensitive, try <Shape Id="Ellipse" /> instead of <Shape Id="ellipse" />.

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 #244 - Aug 1st, 2014 at 12:17pm
 
Please check link which is highlighted by red mark why its not proper?
attached XML and if u want code check my last comment in which i have written code.
  

XML_001.zip (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #245 - Aug 1st, 2014 at 12:57pm
 
We don't have mapping for Trapezoid shape in VisioExporter. We'll try to add one for next release.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #246 - Aug 1st, 2014 at 4:26pm
 
I am using below code to save VISIO file in browser and its working properly but i want JavaScript code to implement same functionality in on HTML page .
So please send Its Javascript code.

byte[] bytesPDF = System.IO.File.ReadAllBytes(path1);
            if (bytesPDF != null)
            {
                Response.AddHeader("content-disposition", "attachment;filename=" +System.IO.Path.GetFileNameWithoutExtension(sFileName)+".VDX");
                Response.ContentType = "application/octectstream";
                Response.BinaryWrite(bytesPDF);
                Response.End();
            }
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #247 - Aug 4th, 2014 at 9:44am
 
PDF and Visio exporters are available only as .NET classes, you won't be able to export directly from JavaScript. If you simply want to avoid reloading the page, you might try calling a web service that exports the diagram and returns a URL to the generated 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 #248 - Aug 4th, 2014 at 1:35pm
 
I am loading diagram on locally then it loads diagram properly but when hitting same URL from other machine Its not loading diagram.

I am using following code to map server name with file path :

Server.MapPath(sFileName)

Please tell me solution on that.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #249 - Aug 4th, 2014 at 1:44pm
 
shrinivas wrote on Aug 4th, 2014 at 1:35pm:
I am loading diagram on locally then it loads diagram properly but when hitting same URL from other machine Its not loading diagram.

I am using following code to map server name with file path :

Server.MapPath(sFileName)

Please tell me solution on that.


This problem occurs in Internet Explorer and its working fine in chrome
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #250 - Aug 4th, 2014 at 4:20pm
 
Quote:
I am loading diagram on locally then it loads diagram properly but when hitting same URL from other machine Its not loading diagram.


What do you mean by "loading diagram on locally" and "Its not loading diagram"? Is it calling LoadFromXml and getting an exception? If LoadFromXml works but then you are seeing JavaScript errors, make sure the IE version is at least 9.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #251 - Aug 5th, 2014 at 4:10am
 
It means suppose i am hitting webpage which shows diagram on local machine it works properly i.e shows diagram but when same page accessed from another machine displays blank page i.e no diagram present on web page.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #252 - Aug 5th, 2014 at 7:03am
 
Check if you haven't turned on IE compatibility view by chance (the broken page icon on the right of address bar) - it does not support the <canvas> element. Also verify IE version is at least 9. If you don't need any interaction on client side, as you said a few days ago, use ImageMap mode and it will work in any browser.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #253 - Aug 5th, 2014 at 8:50am
 
I am using IE 10, IE 11 but still its not working .

Did u understand exact scenario?
I will explain properly

I am hitting webpage on local machine on which I am displaying diagram which works fine but same page i am hitting from other machine in LAN but its not displaying diagram and If i tried same in CHROME its fine so why this problem in IE?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #254 - Aug 5th, 2014 at 10:09am
 
IE might be in compatibility view and so does not support canvas, try hitting the broken page icon in address bar to toggle standards / compatibility modes.

Or you could have reached the maximum canvas size supported by IE, with recent trend for hardware acceleration it could depend on the max. texture size supported by the video card on that particular system. In such case try enabling the CanvasVirtualScroll property.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 ... 15 16 [17] 18 19 ... 21
Send TopicPrint