User (Legacy) Posted October 12, 2006 Report Share Posted October 12, 2006 Hi! In the GetAxisLabels eventhandler I change certain labels at the y-axis. But when I print the chart - with PrintDocument.Print() and Chart.Paint() in the PrintPage event -, the axis labels are the original ones. Is there a possibility to print the chart labels as shown on the screen? Best regards, MusiMeli Link to comment Share on other sites More sharing options...
Software FX Posted October 13, 2006 Report Share Posted October 13, 2006 The GetAxisLabels gets called for every label everytime the chart is painted either to the screen or printer. Are you saying that the event is NOT getting called when you print ? I tried different combinations and I always got the call. What else are you doing to this chart before printing it ? Are you exporting/importing ? Please post a sample that reproduces the problem. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 16, 2006 Author Report Share Posted October 16, 2006 > The GetAxisLabels gets called for every label everytime the chart is > painted either to the screen or printer. > > Are you saying that the event is NOT getting called when you print ? > > I tried different combinations and I always got the call. What else are > you doing to this chart before printing it ? Are you exporting/importing ? Thanks for the tip! Yes, I make a copy of the chart object by exporting/importing a binary stream. If I afterwards add the according EventHandler to this copy, the labels are painted correctly. MusiMeli Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.