Page Index Toggle Pages: 1 ... 16 17 [18] 19 20 21 Send TopicPrint
Locked Topic Link between two nodes (Read 129252 times)
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #255 - Aug 5th, 2014 at 12:39pm
 
But why its working on local machine then?

If we consider that its problem of IE
then why not I am facing problem on locally ?

Its problem only in network.

I have attached 2 Images same flowchart accessing from other machine opens properly on chrome but not in IE11 and there no compatibility mode.

  

IE.jpg (Attachment deleted)
CHROME.jpg (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 #256 - Aug 5th, 2014 at 1:45pm
 
Because your local video card supports larger textures for example, if the problem is in canvas size. Have you tried enabling CanvasVirtualScroll? Also check the JavaScript console in IE developer tools to see if it shows script errors.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #257 - Aug 6th, 2014 at 8:38am
 
Stoyo wrote on Aug 5th, 2014 at 1:45pm:
Because your local video card supports larger textures for example, if the problem is in canvas size. Have you tried enabling CanvasVirtualScroll? Also check the JavaScript console in IE developer tools to see if it shows script errors.


OK.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #258 - Aug 6th, 2014 at 8:41am
 

I want to implement or we can say generate VISIO file which contains multiple pages and It should contains link from one page to another.

I have attached one sample file which i have created manually.

you know I am using XML to generate VISIO files so give me some idea how i can implement single VISIO files having multiple pages with link.

Thanks.
  

Multiple.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 #259 - Aug 6th, 2014 at 1:00pm
 
It's not possible to create a connector between shapes on different Visio pages. Instead Visio uses Off-page Connection nodes to logically represent connections between pages, so you could do the same when splitting your diagram into smaller pages.

You can use the VisioExporter.Export(DiagramDocument) overloaded method to export multiple DiagramPage objects contained in the document. Add a few pages to a DiagramDocument and call DiagramDocument.SaveToXml to see the XML format:

Code
Select All
var doc = new DiagramDocument();
doc.Pages.Add(new DiagramPage());
doc.Pages.Add(new DiagramPage());
doc.SaveToXml("doc.xml");

<DiagramDocument>
  <Diagram Version="16">
    <Nodes />
    ... 



Each page is represented by a child Diagram element in same format as stand-alone diagrams.

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 #260 - Aug 6th, 2014 at 1:40pm
 
Its my mistake I mean not link Its hyperlink from one page to another page.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Link between two nodes
Reply #261 - Aug 7th, 2014 at 5:09am
 
There's no support for hyperlinks between pages in the diagram control's model, so VisioExporter cannot create them directly. You could add the Hyperlink XML to the exported VDX file, as a child element of the off-page connection shape looking like this:

Code
Select All
<Hyperlink ID="1" NameU="OffPageConnector">
	<Description>Off-page Re&ference</Description>
	<Address V="null"/>
	<SubAddress>Page-2</SubAddress>
	<ExtraInfo V="null"/>
	<Frame F="No Formula"/>
	<NewWindow>0</NewWindow>
	<Default>0</Default>
	<Invisible>0</Invisible>
	<SortKey V="null"/>
</Hyperlink> 



We'll try to implement support for this via special syntax of items' Hyperlink property for next release, e.g. "page:PageName".
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #262 - Aug 11th, 2014 at 5:04am
 
I am using following code to implement multiple pages in one VISIO file but Its not arranging nodes properly.
sVDXFilePath = System.IO.Path.GetDirectoryName(sXMLFilePath) + "\\" + "MAIN" + ".VDX";
                    for (iObjCounter = 0; iObjCounter < alXMLFileWithPath.Count; iObjCounter++)
                    {
                        var objDiagPage = new DiagramPage();
                        dc.LoadFromXml(alXMLFileWithPath[iObjCounter].ToString());
                        dc.SaveToXml(alXMLFileWithPath[iObjCounter].ToString());
                        objDiagPage.LoadFromXml(alXMLFileWithPath[iObjCounter].ToString());
                        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);
                        objDiagPage.ArrangeLinkLabels();
                        doc.Pages.Add(objDiagPage);
                        
                    }
                    vex.ExportInvisibleItems = false;
                    vex.ExportTablesAsGroups = true;
                    vex.DynamicsOff = true;
                    vex.Export(doc, sVDXFilePath);
                    return true;

I have attached XML that I am using.
Tell me some properties by which I can arrange nodes properly to visio file.
  

VISIO_001.zip (Attachment deleted)
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #263 - Aug 11th, 2014 at 9:55am
 
I have attached XML files those are used for drawing diagram as well as VISIO in that file <HYPERLINK> tag is present and proper data is also there .
Now I have to implement single VISIO file having multiple tab as per number of XML files.

Here how I can give XML file name to tab name in VISIO file?

I have mentioned code in previous comment.
  

XML_002.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 #264 - Aug 11th, 2014 at 10:52am
 
The tab name of a Visio page is set to the Title property value of respective DiagramPage.

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 #265 - Aug 11th, 2014 at 11:19am
 
Stoyo wrote on Aug 11th, 2014 at 10:52am:
The tab name of a Visio page is set to the Title property value of respective DiagramPage.

I hope that helps,
Stoyan

OK
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #266 - Aug 11th, 2014 at 11:34am
 
shrinivas wrote on Aug 11th, 2014 at 5:04am:
I am using following code to implement multiple pages in one VISIO file but Its not arranging nodes properly.
sVDXFilePath = System.IO.Path.GetDirectoryName(sXMLFilePath) + "\\" + "MAIN" + ".VDX";
for (iObjCounter = 0; iObjCounter < alXMLFileWithPath.Count; iObjCounter++)
{
var objDiagPage = new DiagramPage();
dc.LoadFromXml(alXMLFileWithPath[iObjCounter].ToString());
dc.SaveToXml(alXMLFileWithPath[iObjCounter].ToString());
objDiagPage.LoadFromXml(alXMLFileWithPath[iObjCounter].ToString());
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);
objDiagPage.ArrangeLinkLabels();
doc.Pages.Add(objDiagPage);

}
vex.ExportInvisibleItems = false;
vex.ExportTablesAsGroups = true;
vex.DynamicsOff = true;
vex.Export(doc, sVDXFilePath);
return true;

I have attached XML that I am using.
Tell me some properties by which I can arrange nodes properly to visio file.


PLZ reply me for this post.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #267 - Aug 11th, 2014 at 12:12pm
 
I am executing above code to generate VISIO files Its changing XML I mean deleting some contents please check XML files before and after executing code and VISIO file which is generated which is having also some problem and let me know whats the problem ?

Code :
public bool GenerateBulkVisioFile(ArrayList alXMLFileWithPath, string sXMLFilePath)
        {
            string sVDXFilePath = "";
            Diagram dc = new Diagram();
            var visioDoc = new XmlDocument();
            VisioExporter vex = new VisioExporter();
            var diagDoc = new XmlDocument();
            var doc = new DiagramDocument();
            var page = new DiagramPage();
            var page1 = new DiagramPage();
            int iObjCounter;
            int iFileCounter;
                try
                {

                    sVDXFilePath = System.IO.Path.GetDirectoryName(sXMLFilePath) + "\\" + "MAIN" + ".VDX";
                    for (iObjCounter = 0; iObjCounter < alXMLFileWithPath.Count; iObjCounter++)
                    {
                        var objDiagPage = new DiagramPage();
                        dc.LoadFromXml(alXMLFileWithPath[iObjCounter].ToString());
                        dc.SaveToXml(alXMLFileWithPath[iObjCounter].ToString());
                        objDiagPage.LoadFromXml(alXMLFileWithPath[iObjCounter].ToString());
                        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);
                        objDiagPage.ArrangeLinkLabels();
                        objDiagPage.Title = System.IO.Path.GetFileNameWithoutExtension(alXMLFileWithPath[iObjCounter].ToString());
                        doc.Pages.Add(objDiagPage);
                    }
                    vex.ExportInvisibleItems = false;
                    vex.ExportTablesAsGroups = true;
                    vex.DynamicsOff = true;
                    vex.Export(doc, sVDXFilePath);
                    return true;
                }
                catch (Exception ex)
                {
                    ClsErrorLog.ErrorLog(System.Reflection.MethodBase.GetCurrentMethod().Name, ex.Message);
                    return false;
                }
                finally
                {
                    diagDoc = null;
                }
        }
  

XML_003.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 #268 - Aug 12th, 2014 at 4:20pm
 
I think you should call dl.Arrange(objDiagPage) instead of dl.Arrange(dc). Otherwise you are arranging a temporary diagram you used to generate XML, instead of the page you are adding to the document being exported.
  
Back to top
 
IP Logged
 
shrinivas
Full Member
***
Offline


I Love MindFusion!

Posts: 169
Joined: May 21st, 2014
Re: Link between two nodes
Reply #269 - Aug 13th, 2014 at 5:16am
 
shrinivas wrote on Aug 11th, 2014 at 12:12pm:
I am executing above code to generate VISIO files Its changing XML I mean deleting some contents please check XML files before and after executing code and VISIO file which is generated which is having also some problem and let me know whats the problem ?

Code :
public bool GenerateBulkVisioFile(ArrayList alXMLFileWithPath, string sXMLFilePath)
{
string sVDXFilePath = "";
Diagram dc = new Diagram();
var visioDoc = new XmlDocument();
VisioExporter vex = new VisioExporter();
var diagDoc = new XmlDocument();
var doc = new DiagramDocument();
var page = new DiagramPage();
var page1 = new DiagramPage();
int iObjCounter;
int iFileCounter;
try
{

sVDXFilePath = System.IO.Path.GetDirectoryName(sXMLFilePath) + "\\" + "MAIN" + ".VDX";
for (iObjCounter = 0; iObjCounter < alXMLFileWithPath.Count; iObjCounter++)
{
var objDiagPage = new DiagramPage();
dc.LoadFromXml(alXMLFileWithPath[iObjCounter].ToString());
dc.SaveToXml(alXMLFileWithPath[iObjCounter].ToString());
objDiagPage.LoadFromXml(alXMLFileWithPath[iObjCounter].ToString());
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);
objDiagPage.ArrangeLinkLabels();
objDiagPage.Title = System.IO.Path.GetFileNameWithoutExtension(alXMLFileWithPath[iObjCounter].ToString());
doc.Pages.Add(objDiagPage);
}
vex.ExportInvisibleItems = false;
vex.ExportTablesAsGroups = true;
vex.DynamicsOff = true;
vex.Export(doc, sVDXFilePath);
return true;
}
catch (Exception ex)
{
ClsErrorLog.ErrorLog(System.Reflection.MethodBase.GetCurrentMethod().Name, ex.Message);
return false;
}
finally
{
diagDoc = null;
}
}


Why HyperLINK tag becomes empty after executing this code I have attached both XML files before and after can u tell me reason whats wrong ?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 ... 16 17 [18] 19 20 21
Send TopicPrint