Problem with FillRectangle API which turns printed output to color in job log.

  • Thread starter Thread starter ashok.kumar1974
  • Start date Start date
A

ashok.kumar1974

Guest
Hi

I have problem with below code, the output job log shows full color instead of b/w in my printer.


System.Drawing.Printing.PrintPageEventArgse


var rectStr = new RectangleF(10, 10. 100, 100);
e.Graphics.FillRectangle(new SolidBrush(System.Drawing.Color.White), rectStr );
e.Graphics.DrawString(output.ToString(), fontFtrLeft, System.Drawing.Brushes.Black, rectStr);

Especially the code FillRectange printed the job with full color in job log.

If I commented/removed this code e.Graphics.FillRectangle(new SolidBrush(System.Drawing.Color.White), rectStr );

My printer showing the print job in B/W job log count.

Kindly help us to resolve this issue.

regards,

Ashok

Continue reading...
 
Back
Top