Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Shows TrackBar, RTControlButton in PrintPreview

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

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.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07