I have the following code that should be printing a chart in color. Other things I print nicely print in color but not this chart.
private void button1_Click(object sender, EventArgs e) { PrintDocument doc = ultraChart1.PrintDocument; printDialog1.Document = ultraChart1.PrintDocument; DialogResult res = printDialog1.ShowDialog(this);
if (res == DialogResult.OK) { PrinterSettings printer1 = printDialog1.PrinterSettings; PageSettings page1 = new PageSettings(); // Set the page orientation to landscape. page1.Landscape = true; page1.Color = true; this.ultraChart1.PrintChart(printer1, page1); } }
Thank you. I'm not sure what part of environment would cause this, but I'll figure it out.
Hello Sam,
Your welcome. Let me know if you have any additional questions.