T O P I C R E V I E W |
Sreejith |
Posted - 02 Mar 2006 : 02:37:44 Hello
I want to print the graph so have written the code for same. I have added a RTControlButton for Printing purpose and written the code for printing in the click event of that button. But the problem is it also displays the Print Button, and the trackbarcontrol which is there in ChartView. I tried doing trackbarcontrol visible false but it didnt work. Pls if u can help me in this
Thanks
Thanks & Regards Srejith Nair |
2 L A T E S T R E P L I E S (Newest First) |
Sreejith |
Posted - 03 Mar 2006 : 00:34:52 Thank you for ur quick help. I tried the 4th option and it worked.
Thanks & Regards Srejith Nair |
quinncurtis |
Posted - 02 Mar 2006 : 08:51:37 There are many ways to accomplish that.
1. Use a menu to invoke printing, as most programs do, since there are likely to be printer setup, page setup and page preview requirements anyway.
2. Place the button that invokes printing on the main form, outside of the ChartView derived control or component.
3. Place a normal .Net Button or Scrollbar control in the ChartView. The Charting Tools examples MultipleAxes, DynamicCharts, and FormControlExamples demonstrate this. .Net controls placed in a ChartView will not print.
4. You are most likely placing the RTControlButton in a RTFormControlGrid, or an RTFormControlPanelMeter, which is acutally rendering the control at printing. Disable that control when you print using
controlgrid.ChartObjEnable = ChartObj.OBJECT_DISABLE;
Re-enable using
controlgrid.ChartObjEnable = ChartObj.OBJECT_ENABLE;
We have deleted the other posts from your company on the same question.
|
|
|