Print Page | Close Window

Several print issues (bugs and features)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=22298
Printed Date: 07 May 2024 at 8:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Several print issues (bugs and features)
Posted By: Michl
Subject: Several print issues (bugs and features)
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net