Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Imported Flow Charts (Read 2058 times)
gmills
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Jun 19th, 2008
Imported Flow Charts
Jun 19th, 2008 at 4:39am
Print Post  
2 Questions:

1) When I import a visio flowchart I want to change the Anchor Points of the nodes to a different type to match my settings.  How do i do this?

2) when i print an import flowchart it is all scrunched up and un readable.  Any ideas on fixing this?

Thanks,

Greg
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Imported Flow Charts
Reply #1 - Jun 19th, 2008 at 7:32am
Print Post  
1) You can change the anchor points of a node by creating an AnchorPattern object and assigning it to the DiagramNode.AnchorPattern property. There is some sample code showing that in the Anchors and Flowcharter sample projects. After setting the AnchorPattern, call the ReassignAnchorPoints method, or set the OriginAnchor / DestinationAnchor property of links.

2) Are you using pixels as the MeasureUnit? Usually the print-out doesn't look that good when using pixels - try switching temporarily to Point when printing.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
gmills
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Jun 19th, 2008
Re: Imported Flow Charts
Reply #2 - Jun 19th, 2008 at 8:56am
Print Post  
The Anchor points is working, but the printing is still messed up.  Here is my code:

diagramView.PrintOptions.DocumentName = "Flowchart";
diagramView.PrintOptions.EnableImages = false;
diagramView.PrintOptions.EnableInterior = true;
diagramView.PrintOptions.EnableShadows = true;
diagramView.PrintOptions.Scale = 100;
diagramView.Print();

It work fine on non-imported flowchartes.

Do i need to save the flowchart before printing?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Imported Flow Charts
Reply #3 - Jun 19th, 2008 at 9:06am
Print Post  
Try setting DiagramView.Diagram.MeasureUnit = GraphicsUnit.Point before calling Print(). If that doesn't help, please save the diagram to XML and email it to support@mindfusion.eu.

Stoyan
  
Back to top
 
IP Logged
 
gmills
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Joined: Jun 19th, 2008
Re: Imported Flow Charts
Reply #4 - Jun 19th, 2008 at 3:55pm
Print Post  
OK, We are making progress.  That fixed the Printing.  This lead me to another problem when importing.  My settings before importing are:

diagramView.Diagram.GridSizeX=4;
diagramView.Diagram.GridSizeY=4;
diagramView.Diagram.MeasureUnit =  GraphicsUnit.Millimeter;

After Import the MeasureUnit gets changed automatically to Pixel.  If I change it back to Millmeter then you do ot see the imported flowchart.

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Imported Flow Charts
Reply #5 - Jun 19th, 2008 at 6:44pm
Print Post  
MeasureUnit is set to the one specified in the Visio file being imported, and there is no way to disable that at this time. Additionally, changing MeasureUnit does not alter the digram items sizes to match the new unit. So if you want to return back to Millimeter from Pixel after importing, you will need to scale down the values of all size-related properties, such as DiagramNode.Bounds and DiagramLink.ControlPoints. You could use the method shown here to convert between different units:
http://www.mindfusion.eu/Forum/YaBB.pl?board=fcnet_disc;action=display;num=11686...

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