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
 QCChart2D and QCChart2D CF (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:22:23  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 :  09:50:42  Show Profile  Reply with Quote
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.

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