User (Legacy) 2 Posted October 10, 2002 Report Share Posted October 10, 2002 I used to the sample code to print two charts in the same page: private void PrintCharts(object sender, System.EventArgs e) { PrintDocument pd = new PrintDocument(); pd.PrintPage += new PrintPageEventHandler(PrintPage); pd.Print(); } private void PrintPage(object sender,System.Drawing.Printing.PrintPageEventArgs e) { chart1.Paint(e.Graphics,new Rectangle(0,0,e.MarginBounds.Width,e.MarginBounds.Height/2),PaintFlags.Norma l); chart2.Paint(e.Graphics,new Rectangle(0,e.MarginBounds.Height/2,e.MarginBounds.Width,e.MarginBounds.Heig ht/2),PaintFlags.Normal); } But only the second chart got printed correctly. For chart1, a small empty square in wrong position was printed. I was using HP LaserJet 4050. Then I used AcrobatPDFWriter as the printer, it worked fine. So I am guessing ChartFX doesn't support some kinds of printers' driver very well. If it is correct, could you please give me a list of printers that it can support? Many Thanks. Jason Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.