Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Several print issues (bugs and features)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Several print issues (bugs and features)

 Post Reply Post Reply
Author
Message
Michl View Drop Down
Senior Member
Senior Member


Joined: 14 September 2007
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michl Quote  Post ReplyReply Direct Link To This Post Topic: Several print issues (bugs and features)
    Posted: 14 May 2014 at 4:32am
The print preview mode don't works well.

It is possible that page breaks wrong (rows jumps from one to next page if scaling is "fit to page" and you resize window or changing zoom levels below 100%) or - more worse - last row on a page will not print.

Both problems have the same origing.
Calculation of font height can vary on different zoom levels (<100%). Windows font mapper change intelligent the next font size if size has fraction. So it can happen, that in calculation of printable page height the height differ for some pixels. Especially if you using header and footer text in different font size.

Solution for missing rows:
Pagination must be in 100% mode!
So, rcClient.bottom don't have different values between pagination and drawing and function breaks not too early.

// Clipped rows are printed on the next page
if (y + nRowHeight > rcClient.bottom)
{
   break;
}


Solution for wrong page breaks:
Zoom modes below 100% should be render in 100% in a bitmap and scaling the bitmap.



Additional, if you using time in header or footer it will be modified if you resize preview window or is different between preview and printed page.

A nice feature would be, if empty groups will be wrapped to next page. It's ugly if group row is on previous page and records on next page.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.