Re: Laser Printer Problem for printing an image in C#
From: Sherif ElMetainy (elmeteny.NOSPAM_at_wayout.net.NOSPAM)
Date: 10/30/04
- Next message: web1110: "Re: Execution Problem"
- Previous message: Mark Rae: "Re: Pronouncing Enum"
- In reply to: Mina Gohari: "Laser Printer Problem for printing an image in C#"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 30 Oct 2004 23:26:02 +0200
Hello
If the units of the numbers in your program is pixels, then the reason of
the problem might be that you are hardcoding the values in the code. These
values may work well with your ink-jet printer which has a most probably has
a different resolution than your laser printer. The solution is either use a
unit that's doesn't change from device to another such as millimeters, or
detect the printer resolution at runtime and scale the values according the
the resolution.
Best regards,
Sherif
"Mina Gohari" <mgohari@yahoo.com> wrote in message
news:#aBmL8nvEHA.4028@TK2MSFTNGP15.phx.gbl...
> Hi all
>
> I have a problem with printing a report card to laser printer.
> Everything works properly on ink-jet printer, but when I use laser
> printer , it's not in predifined format. everything is mix-up.
>
>
> Bitmap bmpi = new Bitmap(1169, 827);
> Graphics bmp = Graphics.FromImage(bmpi);
>
> bmp.FillRectangle(Brushes.Gray, 20.0F, 140.0F, 1130.0F, 510.0F);
> bmp.FillRectangle(Brushes.White, 10.0F, 130.0F, 1130.0F, 510.0F);
>
>
>
>
> bmp.DrawRectangle(Pens.Black, 980, 665, 120, 30);
> bmp.DrawString("Ù.شاÙ^رÙ? Ø¢Ù.Ù^زشÛO", subTitle, Brushes.Black,
> 1040, 665, titleFr);
> bmp.DrawString("http://www.olgou.com", new Font("Arial", 13,
> FontStyle.Underline), Brushes.Blue, 900, 795);
> bmpi.RotateFlip(RotateFlipType.Rotate90FlipNone);
> e.Graphics.DrawImage(bmpi, 0.0f, 0.0f, 827.0f, 1169.0f);
>
> any help is appreciated.
>
> Thanks
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
- Next message: web1110: "Re: Execution Problem"
- Previous message: Mark Rae: "Re: Pronouncing Enum"
- In reply to: Mina Gohari: "Laser Printer Problem for printing an image in C#"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|