Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Shows TrackBar, RTControlButton in PrintPreview
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Sreejith

11 Posts

Posted - 02 Mar 2006 :  02:37:44  Show Profile  Reply with Quote
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

quinncurtis

1586 Posts

Posted - 02 Mar 2006 :  08:51:37  Show Profile  Reply with Quote
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.
Go to Top of Page

Sreejith

11 Posts

Posted - 03 Mar 2006 :  00:34:52  Show Profile  Reply with Quote
Thank you for ur quick help. I tried the 4th option and it worked.


Thanks & Regards
Srejith Nair
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07