Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Noob question (Read 2577 times)
marcojr
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Mar 6th, 2008
Noob question
Mar 6th, 2008 at 1:29pm
Print Post  
Hi Felas !

I just need to show to my team the NetDiagram as solution for our needs....

So, basicly...I need to proof that the NetDiagram can generate diagrams based on commands in run time.I'm sure it's possible...but I Can't do it Sad Can someone tell me what's wrong ? I just wanna create 2 boxes and a arrow pointing 1 box to another.. Wink

           fc.BoxBrush = new MindFusion.Drawing.LinearGradientBrush(Color.ForestGreen, Color.White, 30);
           fc.DefaultShape = ShapeTemplate.FromId("Rectangle");
           Box marketing = fc.CreateBox(40, 5, 25, 16);
           marketing.Text = "Marketing";
           marketing.Expanded = false;
           Box rede_entra = fc.CreateBox(5, 35, 25, 16);
           rede_entra.Text = "Rede entra em contato com a VW";
           rede_entra.Expanded = false;
           Box vw_entra = fc.CreateBox(65, 35, 25, 16);
           marketing.AttachTo(rede_entra, AttachToNode.BottomRight);


________________________________

Need#2 : Usually we develop diagrams and we need to print a very huge map using a plotter....Is it possible ? how to enable on the applet the print function ? Any such way to define also the print size ?


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Noob question
Reply #1 - Mar 6th, 2008 at 1:56pm
Print Post  
Hi,

AttachTo does not create an arrow, but a group. To create an arrow, call fc.CreateArrow(marketing, rede_entra).

You can print on the client side like this:
var fcApplet = <%= fc.AppletElement %>;
var fc = fcApplet.getFlowChart();
fc.print();

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


I love YaBB 1G - SP1!

Posts: 2
Joined: Mar 6th, 2008
Re: Noob question
Reply #2 - Mar 6th, 2008 at 2:13pm
Print Post  
TYVM ! Really !

Is there any such way to "fine tunning" the print ?

This method just invoked a simple print dialog...

I saw on the FlowChar .NETr demo a very rich interface to print...you can for example: slice the diagram in up to 6 pages of without (Like visio and erwin does)...

Also in that demo you can determine the size, zoom and stuff...

I'd like to know if it's possible for me create a interface like that on my web browse...don't have to send me the source code.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Noob question
Reply #3 - Mar 6th, 2008 at 2:23pm
Print Post  
You are referring to the print preview window, right? Call the applet's FlowChart.printPreview() method to get print preview in the browser.

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