Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 289911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:56:59+00:00 2026-05-12T05:56:59+00:00

When i am trying to print an image to a printer for a 700kb

  • 0

When i am trying to print an image to a printer for a 700kb file it is sending 120MB of data over to the printer. I can see this because I see the printer spooling 120MB. why would this happend?

Here is the code for the PrintDocument.PrintPage

private void PrintPage(object sender, PrintPageEventArgs ev)
{
                sw.WriteLine("start,PrintPage," + DateTime.Now.ToLongTimeString());

                if (_running && _currentPage != null)
                {
                    RectangleF PrintArea = ev.Graphics.VisibleClipBounds;
                    RectangleF NewImageSize = new RectangleF();
                    Double SF = Convert.ToDouble(PrintArea.Width) / Convert.ToDouble(_currentPage.Width);
                    NewImageSize.Width = Convert.ToInt32(_currentPage.Width * SF);
                    NewImageSize.Height = Convert.ToInt32(_currentPage.Height * SF);

                    //You can influence the quality of the resized image 
                    ev.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
                    ev.Graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Default;
                    ev.Graphics.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.Default;
                    //Draw the image to the printer 
                    ev.Graphics.DrawImage(_currentPage, NewImageSize);
                    _currentPage.Dispose();
                    _currentPage = null;

                    //Trace.WriteLine(string.Format("IsFinished {0}, Count {1}", (_queue.IsFinished ? "True" : "False"), _queue.Count));
                    ev.HasMorePages = (!((_queue.IsFinished) && (_queue.Count == 0)));                    
                }
                sw.WriteLine("end,PrintPage," + DateTime.Now.ToLongTimeString());

            }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:57:00+00:00Added an answer on May 12, 2026 at 5:57 am

    There is two reasons that the printed image is larger than the image file:

    The image file is most likely compressed. If it’s a JPEG image, it’s usually compressed to about 1/10 – 1/20 of it’s size. When you load the image it’s uncompressed to something around 10 MB.

    You are resizing the image when you are sending it to the printer. The resolution of the printer is often quite high. If the resolution of the image is something like 300 PPI and the resolution of the printer is something like 1000 PPI, the image will be resized to about ten times it’s original size.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying something like this Output.py print Hello Input.py greeting = raw_input(Give me the
I am trying to figure out this: c = 1 def f(n): print c
I'm trying to print pages pragmatically with a PHP script, to an office printer.
Im trying to write out an image file that has the following structure: P5
I'm trying to do the following(in this order): Create a Rich Text Format file
Im trying to read in image file from a server , with the code
I'm trying to load an image file from my local disk and output it
I am trying to use Robot in Java to make an image file of
I am trying to print users personal data like name, email, phone number on
I'm trying to send a File to the Server without success. I have this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.