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

  • Home
  • SEARCH
  • 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 9041235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:11:29+00:00 2026-06-16T10:11:29+00:00

i am trying to print an RDLC Report Directly to a POS Printer, using

  • 0

i am trying to print an RDLC Report Directly to a POS Printer, using source code from MSDN (Link), by exporting the report to (EMF) Image, then printing the image to the printer using PrintDocument,I calculate the height of the report based on number of rows (height of one row = 0.6 cm).

The problem is that when the report is too long (more than one page), I got its rows shrunk (compressed) to each other.

How to solve this problem ?
Do I have to use POS Printer library (.NET POS) instead of the exporting the report to image and printing the image? .
you can download the source code from (Here).

thanks in advanced.

  • 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-06-16T10:11:30+00:00Added an answer on June 16, 2026 at 10:11 am

    another solution is to print the large image (which I export the report to it) to many pages :

    private void PrintPage(Object sender, PrintPageEventArgs ev)
            {
                if (pageImage == null)
                    return;
                ev.Graphics.PageUnit = GraphicsUnit.Pixel;
    
                ev.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
                ev.Graphics.PixelOffsetMode = PixelOffsetMode.HighQuality;
                float a = (ev.PageSettings.PrintableArea.Width / 100) * ev.Graphics.DpiX;
                float b = ((ev.PageSettings.PrintableArea.Height / 100) * ev.Graphics.DpiY);
                float scale = 1500;
                scale = 0;
                RectangleF srcRect = new RectangleF(0, startY, pageImage.Width, b - scale);
                RectangleF destRect = new RectangleF(0, 0, a, b);
                ev.Graphics.DrawImage(pageImage, destRect, srcRect, GraphicsUnit.Pixel);
                startY = startY + b - scale;
                float marignInPixel = (0.5f / 2.54f) * ev.Graphics.DpiY;
                ev.HasMorePages = (startY + marignInPixel < pageImage.Height);
            }
    

    you can download the source code from (here)

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

Sidebar

Related Questions

I am trying to print numbers from 1 to 100 without using loops, using
Trying to print posts from database using While loop, Not able to wrap all
I'm trying to print a word doc from my C# code. I used the
I'm trying to print Arabic in some PDF documents using the Java code found
I am trying print out details from my page, using a separate CSS file.
I am trying to print a particular text using awk if string is empty.
Im trying to print, using a xslt sheet a url but im having problems
I'm trying to print the data that comes across the serial from an Arduino
I'm trying to print this page under the link graded fabric ArcCom in IE
I'm trying to print a datagridview by drawing to bitmap using visual studio 2008

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.