Author |
Topic  |
|
jack1974
10 Posts |
Posted - 02 Nov 2005 : 09:22:23
|
I am able to print the charts, but I am having a problem making it also print out the other features that I have displayed such as: text boxes, combo boxes, button, etc. Is there a way to print these objects?
|
|
quinncurtis
1164 Posts |
Posted - 02 Nov 2005 : 09:50:42
|
In the Real-Time Tools for .Net manual, in Chapter 14, it is discussed that a common characteristic of all .Net controls is that they will NOT render (draw) to an a printer device context. Why you ask? We have no idea; you'll have to ask Microsoft.
It is up to the programmer to explicity render the look and content of .Net controls when printing, using some half-hearted support routines from Microsoft. One article that discusses techniques for doing this is http://www.csharpcorner.com/Code/2003/March/FormPrinting.asp
This is what we have done for controls that we subclassed for use in the Real-Time Graphics Tools, namely RTControlButton and RTControlTrackBar. We wrote customized rendering routines for these controls where when a printer device context is detected, we draw the control explicity to the printer using basic line, rectangle and text drawing techniques. You must use our versions of these controls for controls to be printed, and not the underlying Button and TrackBar controls.
The RTControlButton and RTControlTrackBar are only found in the Real-Time Graphics Tools for .Net and not the Charting Tools for .Net.
When it comes to other controls we have no additional support.
|
 |
|
|
Topic  |
|
|
|