No chart on print preview
No chart on print preview
Hi, i want to create a print document with standard TeeChart tool, i use to draw Chart using Print(Rectangle rect) method, which i call in Print page event, which appears when i call Preview() method of TeeChart.Printer, and used to draw Chart and some extra strings. But there is no cghart on this preview, but if i try to zoom the preview, it appears. What should i do to get chart printed without zooming. I attached simple project, that reproduces problem.
- Attachments
-
- PrintProblem.rar
- (31.47 KiB) Downloaded 753 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: No chart on print preview
Hi Petr,
That's similar to what I explained here. So, instead of calling:
you should call:
That's similar to what I explained here. So, instead of calling:
Code: Select all
//tChart1.Printer.Print(m_PrintRect);
Code: Select all
//tChart1.Printer.Print(m_PrintRect);
System.Drawing.Imaging.Metafile m = tChart1.Chart.Metafile(tChart1.Chart, m_PrintRect.Width, m_PrintRect.Height);
ev.Graphics.DrawImage(m, m_PrintRect, tChart1.Chart.ChartBounds, GraphicsUnit.Pixel);
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: No chart on print preview
Hi Narcis, thanks for the response, that works, but on the document appears two lines, on the left and bottom edge, how can i remove them?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: No chart on print preview
Hi Petr,
Try setting the outer bevel to nothing:
Does this solve the problem for you?
Try setting the outer bevel to nothing:
Code: Select all
tChart1.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |