Print black and white

Stimulsoft Reports.WEB discussion
Post Reply
romulocpd
Posts: 73
Joined: Thu Oct 17, 2013 10:39 pm
Location: Nova Friburgo, Rio de Janeiro, Brasil

Print black and white

Post 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!
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Print black and white

Post 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.
Post Reply