Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) diagramView1.Behavior? (Read 9317 times)
nick00
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Nov 7th, 2008
Re: diagramView1.Behavior?
Reply #15 - Dec 16th, 2008 at 2:08pm
Print Post  
1. You didnt answer my previous quetion about coping the DLL
I have added refrences to my project from the loaction
C:\Program Files\MindFusion\FlowChart.NET Professional Edition\VS2005 (.NET 2.0)
in this case where to add that unzipped folder

2.
Let me clear one think
Right now i am not using zoom functionality, but later i will use once this basic thing worked properly


when i do PDF export it dont show link text in the saved PDF file, but can see it in my original diagram view even print preview is perfect.

in this case do I use:
diagram_DrawForeground instead of diagram1_DrawLink
« Last Edit: Dec 17th, 2008 at 6:43pm by nick00 »  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: diagramView1.Behavior?
Reply #16 - Dec 17th, 2008 at 8:04am
Print Post  
Quote:
in this case do I use:
diagram_DrawForeground instead of diagram1_DrawLink


I don't get it, are you using DrawLink when drawing on the screen, and DrawForeground when exporting to PDF?

Quote:
You didnt answer my previous quetion about coping the DLL


What about the dlls? If you can see the new DrawForeground event, that means the project uses a correct reference path to the new assemblies.

Stoyan
  
Back to top
 
IP Logged
 
nick00
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Nov 7th, 2008
Re: diagramView1.Behavior?
Reply #17 - Dec 17th, 2008 at 2:50pm
Print Post  
sorry for confusing you,
but its the code that i provided in previous reply,

I am not at all using DrawForeground (bcoz its not really added as i dont know where to place those DLLs)

I am simply using the DrawLink event

Actually I got the reason but not sure the solution on this

My problem is,
I can see the Link Text properly on the Diagram, even the print preview is correct, but when i do PDF export part of the Link Text after the "\r\n" new line is missing in the Exported PDF file.

note: I am using new line character ("\r\n" )  in the String of the Link Text.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: diagramView1.Behavior?
Reply #18 - Dec 17th, 2008 at 3:22pm
Print Post  
The DrawLink event for a single link is not really a good place to draw all other links; first update your reference path so you can see the DrawForeground event.

E.g. create a "new assemblies" subfolder under the Flowchart.NET installation folder and unzip the updated dlls there. Open your project's property pages and select the Reference Paths tab. There add the "C:\Program Files\MindFusion\FlowChart.NET Professional Edition\new assemblies" folder, make sure it is at the top. Now save your changes and select the mindfusion.diagramming.dll under the project's references section in solution explorer. Hit F4 to see its properties and verify it's in the correct folder. If so, you should be able to handle the DrawForeground event and custom-draw the labels from it, and then see all labels both when zooming or exporting to PDF.

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


I love YaBB 1G - SP1!

Posts: 44
Joined: Nov 7th, 2008
Re: diagramView1.Behavior?
Reply #19 - Dec 17th, 2008 at 6:06pm
Print Post  
I am still facing the problem even I use diagram1_DrawForeground()

I got 3 issues,
1. Just let me clear you again
while building the Link text string I have inserted new Line character ("\r\n") in Link Text
which i can see proper in the diagram view( even correct with the printpreview, Now Zoom is also perfect) but when i do PDF Export, in the PDF file I dont see the string after new line character("\r\n") in the Link Text that mean strings are not shown complitly the part of the sting after "\t\n" is missing

2. Other thing just want to make sure, is this diagram1_DrawForeground runs only once unlike the DrawLink event which runs for each link?

3. after using the updated DLL, it shows FlowChart.NET trial version, because already we bought the professional version.


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: diagramView1.Behavior?
Reply #20 - Dec 17th, 2008 at 7:12pm
Print Post  
1. I suppose PDF reader could be leaving a bit of more empty space between lines of text, and so the textRect measured using the GDI+ functions might not be large enough for the text in PDF. Try adding a couple of millimeters to the rectangle width and height.

2. It is raised once per Paint event when rendering on screen, or once for each page in PDF.

3. Thanks, but we cannot know that from your yahoo address Smiley Please email to support@mindfusion.eu from your company's domain email address, or send me a private message with the name of your company.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: diagramView1.Behavior?
Reply #21 - Dec 18th, 2008 at 7:45am
Print Post  
I have just emailed you the link.

Stoyan
  
Back to top
 
IP Logged
 
nick00
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 44
Joined: Nov 7th, 2008
Re: diagramView1.Behavior?
Reply #22 - Dec 18th, 2008 at 5:21pm
Print Post  
you r owesome man,

i appritiate your help, everything is working fine so far.

thanks once again
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint