Author |
Topic  |
|
jfu
11 Posts |
Posted - 06 Feb 2006 : 10:28:28
|
Dear sir ro Madam,
I have a question about QCChart2D.Could you let me know how to plot a graph to fully fill a portrait page which is done automatically before? Now I did not find any sample codes ploting a graph in this way.
Thanks,
Jim
jfu |
|
quinncurtis
1164 Posts |
Posted - 06 Feb 2006 : 10:36:57
|
You topic heading implies that this is a Printer related question, but the substance of your message does not mention printing.
Are you asking about Printing, or are you trying to maximimze a graph in a portrait oriented window on the screen?
Also, we do not understand "Could you let me know how to plot a graph to fully fill a portrait page which is done automatically before? "
You need to explain this in more detail.
|
 |
|
jfu
11 Posts |
Posted - 06 Feb 2006 : 16:46:37
|
I use the Printobj to print a graph. By default the print will print the graph in landscape. It works fine. Now, I open page setup, and change orientation to portrait. Then I preview what I will print. The graph is just about half page. Even I set printobj.PrintSizeMode to CartObj.PRT_MAX. I print the graph I got a small size(about half page graph). I want to know how I can print a graph which fills up whole page instead of half page after I select portrait orientation.
Thanks,
Jim
jfu |
 |
|
quinncurtis
1164 Posts |
Posted - 06 Feb 2006 : 18:19:37
|
The printing system is WYSIWYG (What you see is what you get). You cannot change the aspect ratio of the graph, as displayed on the screen, when you print. The documentation mentions that the PRT_MAX mode can change the aspect ratio of the graph, but this is an error. The PRT_MAX mode prints the chart as large as possible, while maintaining the same aspect ratio as the original ChartView. So if the width is the limiting factor, the bottom of the printed page will always be blank. The same is true of the PRT_RECT mode. While the PRT_RECT mode can control the size and position of the chart on the printed page, it cannot change the aspect ratio of the chart.
The only way to fill the printed page in portrait mode is establish the screen ChartView size with the same aspect ratio as the 8 1/2 x 11 printed page printable area (about 6.5 x 9 assuming the 1 inch default margins). So a ChartView sized to 650W x 900H will fill the page, as will other ChartView sizes with the same proportions (500W x 692H, 400W x 554H, 300W x 415 etc.)
|
 |
|
jfu
11 Posts |
Posted - 08 Feb 2006 : 09:15:54
|
Thank you very much for your help. I have a another question about Moving Chart Objects. According to QCChart2D Charting Tools for .Net Manual, Shape class is moveable using mouse. But even I did not set any objectfilter, I still cannot move a rectangle I drawed on chart view. The other GraphObjs, such as legend, text, axis, can be moved without problem. What should I do to move a shape?
Thanks,
Jim Fu
jfu |
 |
|
quinncurtis
1164 Posts |
Posted - 08 Feb 2006 : 10:47:11
|
That is a bug. What version of the QCChart2DNet.dll are you using ? We should be able to send you a version of the DLL that has that item fixed. |
 |
|
jfu
11 Posts |
Posted - 08 Feb 2006 : 12:24:47
|
File version 1.0.1.1
jfu |
 |
|
quinncurtis
1164 Posts |
Posted - 08 Feb 2006 : 15:03:53
|
We have requested some information by e-mail regarding your original order and are waiting for a reply. |
 |
|
|
Topic  |
|