Re: Laser Printer Problem for printing an image in C#

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Sherif ElMetainy (elmeteny.NOSPAM_at_wayout.net.NOSPAM)
Date: 10/30/04


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!



Relevant Pages

  • Re: Consumer grade color laser jet vs. Commercial printing
    ... Dot size and resolution is a principle factors that can be considered when looking at laser printer specs, in regard to greyscale or color gradients. ... I always suggest people ultimately use their eyes when at all possible to determine the quality of a printer's output, but the specs can help to narrow down the process, especially in laser printers, which have lower control over each dot and use nearly opaque "inks". ...
    (comp.periphs.printers)
  • Re: Scanning resolution question
    ... inkjet printers have an effective pixel resolution of between ... the laser printer uses. ... Scanning at 300 pixels per inch means you won't ...
    (comp.sys.mac.system)
  • Color Laser Printer with high output resolution?
    ... I am looking to buy a laser printer with the highest possible output ... resolution available today. ... Print speed (ppm) isn't as important to ... Jim Light ...
    (comp.periphs.printers)
  • Laser Printer Problem for printing an image in C#
    ... I have a problem with printing a report card to laser printer. ... Everything works properly on ink-jet printer, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Matlab crashes on pressing print button in editor (R14 OS X)
    ... good for, the default resolution, of pngs at least, is good enough. ... look really cruddy when you print them on a laser printer. ...
    (comp.soft-sys.matlab)