Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Print preview with graphics drawing included (Read 1749 times)
j poz
Junior Member
**
Offline


I Love MindFusion!

Posts: 78
Joined: Nov 21st, 2012
Print preview with graphics drawing included
May 12th, 2022 at 4:10pm
Print Post  
We are attempting to print/print preview a View, included graphics we have drawn ourselves with the Graphics object of the View. These drawn items are not appearing in the print. Is there a way to include them?
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: Print preview with graphics drawing included
Reply #1 - May 13th, 2022 at 7:33am
Print Post  
Do you mean custom graphics drawn from global DrawForeground / DrawBackground event handler? Or ones drawn for individual nodes by overriding Draw methods or handling DrawNode event?

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
jwein
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 1
Joined: May 13th, 2022
Re: Print preview with graphics drawing included
Reply #2 - May 13th, 2022 at 2:16pm
Print Post  
Oh no we aren't overriding the draw method. Part of what we are doing is setting the pen property of the DiagramLink and using the CreateMeasureGraphics function to show additional connection information. We are trying to figure out how to get that information that is drawn to be included in the PrintPreviewEx process.
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: Print preview with graphics drawing included
Reply #3 - May 13th, 2022 at 2:37pm
Print Post  
If you need to show additional information for a link, try drawing it through the e.Graphics argument provided to DrawLink event handlers, after setting link.CustomDraw = Additional. This should show both on screen and printer.

If the additional information is just text, try using LinkLabel objects; they let you show many labels for a link.

You shouldn't be able to show anything on screen through public CreateMeasureGraphics() result - it's backed by an offscreen bitmap and supposed to be used only for string measurements and unit conversions. If you prefer that anyway, please post your code - we have no idea how you'd be able to transfer from the measurement graphics to screen.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint