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#)
 How to create a 17x11 inches chart
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

n/a

10 Posts

Posted - 16 Jan 2004 :  13:44:15  Show Profile  Reply with Quote
I have to create a chart that fills paper size 17 x 11 inches. I need to print the chart exactly the same as on the form. if the paper margin is 1 inch on each side. so the chart should be 15 inches in width and 9 inches in highth. I tried to create the same size form but I couldn't in VB .Net. Is there a way to do this? Thanks.

quinncurtis

1164 Posts

Posted - 16 Jan 2004 :  16:42:15  Show Profile  Reply with Quote
We use the default PageSettings for initializing the printer. If this is not set to 11x17 there may be a problem getting 11 x 17 to print.

Try and use the following PageSetup method and call it instead of the PrinterSetup method in the ChartOfTheWeek01-14-04 demo. Set the 11x17 paper from the PageSetup dialog.

public void PageSetup(object sender, System.EventArgs e)
{
ChartView chartVu = this;
if (chartVu != null)
{
if (printobj == null)
{
printobj = new ChartPrint(chartVu);
}
else
printobj.PrintChartView = chartVu;
PageSetupDialog pgSetupDlg = new PageSetupDialog();
pgSetupDlg.Document = printobj.PrintDoc;
pgSetupDlg.MinMargins = new Margins(25,25,25,25);
pgSetupDlg.PageSettings = printobj.PrintPageSettings;
pgSetupDlg.ShowDialog();
}
}


Go to Top of Page

n/a

10 Posts

Posted - 19 Jan 2004 :  18:09:36  Show Profile  Reply with Quote
I tried on ChartOfTheWeek01-14-04. It doesn't work. Right now I can preview and print charts. The problem is that I can not control the size of the chart when preview or print. I tried to set nSizeMode to PRT_MAX, PRT_EXACT, and PRT_RECT but I could get right result. My purpouse is to preview or print chart just the size of paper size 8.5 x 11, 8.5 x 14, and 11 x 17 (inches). Please give me some ideas.

Meanwhile when I create small size chart on the form it looks find. The titles, lables and ticks are good. But when I make the
size of the form bigger then the font size, the line width, and tiltle location changed and looks ugly. For example the footer will overlap the X axis labels. The font size should be 8 but it looks like 16 and so on. I tried to first change the size of form bigger, then redraw the chart, however it still looks ugly. Is there a way to maintain the chart settings. I think if the plot size is bigger but the font size should keep the same whatever the plot size small or big.

Pleaes help. Thanks.
Go to Top of Page

quinncurtis

1164 Posts

Posted - 20 Jan 2004 :  10:01:49  Show Profile  Reply with Quote
We could not reproduce the problem you describe. We have sent you our test program, the modified ChartOfTheWeek01-14-04 example program.
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