Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Saving(Creating) diagram as image. (Read 2089 times)
muthuhamid
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Feb 1st, 2009
Saving(Creating) diagram as image.
May 7th, 2009 at 7:47am
Print Post  
Hi

Am drawing some diagram with different types of the nodes (shape node and control nodes). now i need to save the diagram

as image. am using the following code to save the diagram as image. It is saved but the control node is not saving as image

simply a blank box is showing in the place of control node.

Can you help me what will be missing to see the control node also.

FYI : am adding the the user control to the control node ie some Chart(Graph) control.

The code is :

dim diagramImage As Image = Me.doc.CreateImage()

Thanks

Hamid

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Saving(Creating) diagram as image.
Reply #1 - May 7th, 2009 at 10:06am
Print Post  
Hosted controls are rendered in the exported image only if they are native .NET controls that paint themselves in the OnPaint method. If a control is a wrapper around a Win32 control, Flowchart.NET cannot make it render itself on the bitmap's Graphics. You must handle the PaintControl event to implement image export and printing for such controls.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
muthuhamid
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 60
Joined: Feb 1st, 2009
Re: Saving(Creating) diagram as image.
Reply #2 - May 8th, 2009 at 4:00pm
Print Post  
Thanks stoyan

Could you pls post the sample code of how to implement image export.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Saving(Creating) diagram as image.
Reply #3 - May 9th, 2009 at 11:40am
Print Post  
The PaintControl help topic has some sample code:
http://www.mindfusion.eu/onlinehelp/flowchartnet/index.htm?E_MindFusion_Diagramm...

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