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
300
WinGrid doesn't print in color
posted

Hi,

My topic is not exactly right, because the column headers are colored, but .. I change the text color for cells which contain violations to red via row.Cells["sample_mean"].Appearance.ForeColor = Color.Red; But in the print previews and printnigs this is always black.. My print function looks like this:

 private System.Drawing.Printing.PrintDocument c_pdSetup = new System.Drawing.Printing.PrintDocument();

private void pshGridPrint_Click(object sender, EventArgs e)
{
            // display page setup dialog
                c_pdSetup.DefaultPageSettings.Landscape = true;
                c_pdSetup.DefaultPageSettings.Color = true;               
                pageSetupDialog1.Document = c_pdSetup;
                if (pageSetupDialog1.ShowDialog() == DialogResult.OK) this.SampleDataGrid.PrintPreview(this.SampleDataGrid.DisplayLayout, c_pdSetup);