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 & .Net Compact Framework
 Real-Time Graphics Tools for .Net (VB and C#)
 Printing .Net Controls
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

jack1974

10 Posts

Posted - 02 Nov 2005 :  09:10:55  Show Profile  Reply with Quote
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 :  10:13:04  Show Profile  Reply with Quote
See Chapter 14 or the Real-Time Graphics Tools manual where we discuss the RTControlButton and RTTrackBar controls.

All .Net controls have a common shortcoming; by design, they will not render (draw) to a printer device context. Why you ask ? We do not know; you will have to ask Microsoft. Our guess is that .Net controls use underlying WIN32 API common controls for display purposes, and that these controls cannot be easily rendered to a .Net printer device context.

Simple .Net controls (Button, TrackBar, ComboBox etc.) added to one of our ChartView windows will not print because of this.

We have subclassed the Button and TrackBar controls in our software as RTControlButton and RTControlTrackBar, and added the necessary code to render these objects to a printer. This involves actually drawing the control using basic line, pixel, rectangle and text drawing techniques.

But when it comes to combo boxes and text boxes there is nothing our software will do for you.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07