Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DrawMark not called when printing (Read 3804 times)
ooswald
YaBB Newbies
*
Offline



Posts: 16
Joined: Jun 15th, 2006
DrawMark not called when printing
Jun 20th, 2006 at 6:35am
Print Post  
DrawMark is not called when printing a diagram with MarkStyle set to Custom (whereas DrawBox is when CustomDraw=Full).

However, DrawMark is called as expected when displaying the diagram.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DrawMark not called when printing
Reply #1 - Jun 20th, 2006 at 8:22am
Print Post  
This could help:

FlowChart.PrintOptions.EnableAnchors = true;
  
Back to top
 
IP Logged
 
ooswald
YaBB Newbies
*
Offline



Posts: 16
Joined: Jun 15th, 2006
Re: DrawMark not called when printing
Reply #2 - Jun 20th, 2006 at 8:24am
Print Post  
it may, but:

'MindFusion.FlowChartX.PrintOptions' does not contain a definition for 'EnableAnchors'
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DrawMark not called when printing
Reply #3 - Jun 20th, 2006 at 8:38am
Print Post  
Maybe because it is internal - we will make it public in the next version.
  
Back to top
 
IP Logged
 
ooswald
YaBB Newbies
*
Offline



Posts: 16
Joined: Jun 15th, 2006
Re: DrawMark not called when printing
Reply #4 - Jun 20th, 2006 at 8:40am
Print Post  
ok, thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DrawMark not called when printing
Reply #5 - Jun 20th, 2006 at 8:40am
Print Post  
Meanwhile you can enable that by setting FlowChart.ShowAnchor = Always while the document prints. E.g. in a DrawBox event handler check if some "now printing" boolean flag is set, and if it is - set ShowAnchors. That will also set the internal EnableAnchors property of PrintOptions.
  
Back to top
 
IP Logged
 
ooswald
YaBB Newbies
*
Offline



Posts: 16
Joined: Jun 15th, 2006
Re: DrawMark not called when printing
Reply #6 - Jun 20th, 2006 at 8:47am
Print Post  
perfect, it works now

Code
Select All
private void flowChart1_DrawBox(object sender, BoxDrawArgs e) {
  if (...) {
    flowChart1.ShowAnchors = ShowAnchors.Always;
  }
  ...
} 

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint