Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
Printing in color from ultrachart?
posted

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);
    }
}