Print Page | Close Window

Print preview bug

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=16216
Printed Date: 15 November 2024 at 7:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Print preview bug
Posted By: CyberSky
Subject: Print preview bug
Date Posted: 17 February 2010 at 2:57pm

I've replaced the standard MFC print preview with the nicer print preview seen in some of the sample programs. I've added the following lines to my view's OnPreparePrinting():

pInfo->m_nNumPreviewPages = 1;

pInfo->SetMinPage(1);

pInfo->SetMaxPage(1);

This disables the Previous/Next Page buttons, as it should. However, the button to display multiple pages (to the left of Close Preview) is still enabled, and if I use it to display anything other than one page, the preview shows two pages, one with my document and the other one a blank page.

I think this button should be disabled if there is only one page, or it should cause just one page to appear in the preview, not two pages, one being blank.
 
Edit: In your print preview, both the One Page and Multiple Pages buttons are lacking tooltips. I also just checked Outlook 2007 and in its print preview, the Multiple Pages button is disabled if there is only one page page to print.
 
Edit 2: Another bug (?): When the print preview first appears, the pointer is a magnifying glass. Clicking causes the magnification/zoom to increase. In the standard print preview, once you hit maximum magnification, clicking cycles through the magnifications again. But, in your print preview, once you reach maximum (500%) the pointer changes to an arrow and clicking does nothing. To only way to go back to lower magnification is to use the zoom out button on the toolbar or select a smaller percentage. I think clicking should cycle through the magnifications.
 
 
 



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