<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Print preview bug</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Print preview bug]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 13:24:16 +0000</pubDate>
  <lastBuildDate>Wed, 17 Feb 2010 14:57:02 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=16216</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Print preview bug : I&amp;#039;ve replaced the standard...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16216&amp;PID=56867&amp;title=print-preview-bug#56867</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5902">CyberSky</a><br /><strong>Subject:</strong> 16216<br /><strong>Posted:</strong> 17 February 2010 at 2:57pm<br /><br /><P><FONT size=2 face="Verdana, Arial, Helvetica, sans-serif">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():</FONT></P><DIV><FONT size=2 face="Verdana, Arial, Helvetica, sans-serif"></FONT></DIV><DIV><FONT size=2 face="Verdana, Arial, Helvetica, sans-serif">pInfo-&gt;m_nNumPreviewPages = 1;</FONT></DIV><DIV><P><FONT size=2 face="Verdana, Arial, Helvetica, sans-serif">pInfo-&gt;SetMinPage(1);</FONT></P><P><FONT size=2 face="Verdana, Arial, Helvetica, sans-serif">pInfo-&gt;SetMaxPage(1);</FONT></P><P><FONT size=2 face="Verdana, Arial, Helvetica, sans-serif">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.</P><DIV>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.</DIV><DIV>&nbsp;</DIV><DIV>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.</DIV><DIV>&nbsp;</DIV><DIV>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.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV></FONT>&nbsp;</DIV></DIV>]]>
   </description>
   <pubDate>Wed, 17 Feb 2010 14:57:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16216&amp;PID=56867&amp;title=print-preview-bug#56867</guid>
  </item> 
 </channel>
</rss>