Page 1 of 1

Print black and white

Posted: Tue Oct 29, 2013 3:45 pm
by romulocpd
Hello.

My reports have some colors to show data. When the report is printed in a laser printer, the print i'ts not good, some light.

My customer ask me: Is it possible show color on screen and change the color on print time?

Thank you!

Re: Print black and white

Posted: Wed Oct 30, 2013 11:58 am
by HighAley
Hello.

You could use code like next in the Printing event:

Code: Select all

	    foreach (StiPage page in RenderedPages)
            {
                foreach (StiComponent comp in page.Components)
                {
                    if (comp.Name == "Text1")
                    {
			(comp as StiText).Brush = new Stimulsoft.Base.Drawing.StiSolidBrush(System.Drawing.Color.Transparent);
                    }
                }
            }
Thank you.