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
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bli7167

12 Posts

Posted - 27 Mar 2006 :  15:28:28  Show Profile  Reply with Quote
Hi,

We need to build an application which prints hundred or thousand of stock charts without user interference (the result could be up to hundreds of pages in a extreme case).

I see from your document that ChartPrint.DocPrintPage does open up a small window while printing is going on and automatically close when print finishes. Can we even eliminate that (Since I assume in our extreme case we would have to see this samll window open and close for hundred of times)?

Also, ChartPrint object seems to only associate with a single chart view. (see ChartPrint's constructor definition). Does that mean when I call ChartPrint.DocPrintPage(), only single chartview gets printed?

Is it possible to print a document that have several chartviews defined? or is it better to keep one chart view on one page?

Thanks.

B7167

quinncurtis

1164 Posts

Posted - 27 Mar 2006 :  16:25:48  Show Profile  Reply with Quote
If you solve a problem in a previous post (Week_5D time coordinate does not work), please post the solution so that others can benefit.

You should be be able to print as many pages as you want.

The Printing/Cancel dialog is generated by .Net during printing. While there may be some way of eliminating it, we do not know what that is. If you find some reference that describes how it is done we may be able to make some suggestions.

You can associate a single ChartPrint object, and the associated setup parameters, with as many ChartView objects as you need, using the ChartPrint.PrintChartView property. Change the PrintChartView property to the ChartView derived object that you want to print.

	

ChartView chartVu;
.
.
.
printobj.PrintChartView = chartVu;
printobj.DocPrintPage( sender,  e);	

Go to Top of Page

bli7167

12 Posts

Posted - 28 Mar 2006 :  15:32:38  Show Profile  Reply with Quote
Your method basically is:

Define a ChartPrint obj, and associate each chart view derived class obj to it by access its PrintChartView property and call DocPrintPage.

But by doing this, different chart views go to different page.

What I want is to have a single document (or screen) with multiple chart views defined, and when I hit the single print button, all chart views are rendered on a single page of paper, perserving the relative location of the each chartview to that on screen.

Thanks.

Bing

B7167
Go to Top of Page

quinncurtis

1164 Posts

Posted - 28 Mar 2006 :  15:42:16  Show Profile  Reply with Quote
The software cannot do that. You can only print on a single page what you can place in a single ChartView. For printing, you would need to place all of the graphs in a single ChartView.

Another alternative is save each chart as an image file, and then place the chart images, and not the ChartView windows themselves, in some .Net image controls, organized on a form. Then print the form. We don't have any examples of this, and generalized printing of a .Net form is up to 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