<?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 : PrintPreview does not work!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : PrintPreview does not work!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 14:34:48 +0000</pubDate>
  <lastBuildDate>Tue, 30 Nov 2004 00:49:15 +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=1454</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[PrintPreview does not work! : It is bug of MFC 4.2 with manifest...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1454&amp;PID=4192&amp;title=printpreview-does-not-work#4192</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1454<br /><strong>Posted:</strong> 30 November 2004 at 12:49am<br /><br /><P>It is bug of MFC 4.2 with manifest used.</P><P>try to comment in rc file:</P><P> IDR_MANIFEST&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 24&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DISCARDABLE&nbsp;&nbsp;&nbsp;&nbsp; "res\\manifest.xml"</P>]]>
   </description>
   <pubDate>Tue, 30 Nov 2004 00:49:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1454&amp;PID=4192&amp;title=printpreview-does-not-work#4192</guid>
  </item> 
  <item>
   <title><![CDATA[PrintPreview does not work! : Oleg, Even so, the print preview...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1454&amp;PID=4179&amp;title=printpreview-does-not-work#4179</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=15">spike</a><br /><strong>Subject:</strong> 1454<br /><strong>Posted:</strong> 27 November 2004 at 3:00pm<br /><br /><P>Oleg,</P><P>Even so, the print preview sample does not work. Try for yourself. Type something in the document and preview it. On any machine I have tried it on I only see the first character</P>]]>
   </description>
   <pubDate>Sat, 27 Nov 2004 15:00:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1454&amp;PID=4179&amp;title=printpreview-does-not-work#4179</guid>
  </item> 
  <item>
   <title><![CDATA[PrintPreview does not work! : CFormView hasn&amp;#039;t preview...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1454&amp;PID=4141&amp;title=printpreview-does-not-work#4141</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1454<br /><strong>Posted:</strong> 25 November 2004 at 1:11am<br /><br /><P>CFormView hasn't preview output.</P><P>You can easy check it: Create simple MFC application with CFormView as view class. Print Preview will show empty window.</P>]]>
   </description>
   <pubDate>Thu, 25 Nov 2004 01:11:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1454&amp;PID=4141&amp;title=printpreview-does-not-work#4141</guid>
  </item> 
  <item>
   <title><![CDATA[PrintPreview does not work! : I am trying to get PrintPreview...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1454&amp;PID=4138&amp;title=printpreview-does-not-work#4138</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=15">spike</a><br /><strong>Subject:</strong> 1454<br /><strong>Posted:</strong> 24 November 2004 at 3:58pm<br /><br /><P>I am trying to get PrintPreview to work using the XTPPrintPreview class in my project. </P><P>&nbsp;</P><P>void CSchedulerFormView::OnToolBarButtonClick(UINT nID) <BR>{<BR>&nbsp;switch( nID )<BR>&nbsp;{<BR>&nbsp;&nbsp;case ID_SCHEDULER_PRINT:<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;case ID_SCHEDULER_REFRESH:<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;OnScheduleComboAfterUpdate(0,0);<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;case ID_SCHEDULER_PREVIEW:<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;CPrintPreviewState* pState = new CPrintPreviewState;</P><P>&nbsp;&nbsp;&nbsp;if ( !DoPrintPreview( XTP_IDD_PREVIEW_TOOLBAR, this,<BR>&nbsp;&nbsp;&nbsp;&nbsp;RUNTIME_CLASS( CXTPPreviewView ), pState ))<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;// In derived classes, reverse special window handling here for<BR>&nbsp;&nbsp;&nbsp;&nbsp;// Preview failure case;<BR>&nbsp;&nbsp;&nbsp;&nbsp;delete pState;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>}<BR></P><P>BOOL CSchedulerFormView::OnPreparePrinting(CPrintInfo* pInfo)<BR>{<BR>&nbsp;// default CEditView preparation<BR>&nbsp;return DoPreparePrinting(pInfo);<BR>}</P><P>void CSchedulerFormView::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)<BR>{<BR>&nbsp;// Default CEditView begin printing.<BR>&nbsp;CProjectBASEFormView::OnBeginPrinting(pDC, pInfo);<BR>}</P><P>void CSchedulerFormView::OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)<BR>{<BR>&nbsp;// Default CEditView end printing<BR>&nbsp;CProjectBASEFormView::OnEndPrinting(pDC, pInfo);<BR>}<BR></P><P>I have that code and it gets called with no problems, but the print preview window is empty. Which is the same thing that happens in the PrintPreview sample. The only difference is I in the PrintPreview sample you use CEditView (which only shows the first character in preview mode) and I am using a CFormView. On my preview window I get an empty white preview window. </P><P>Can someone who has gotten this to work show me what I am doing wrong or let me know if it doesnt work?</P><P>&nbsp;</P><P>Thanks</P><P>Craig</P>]]>
   </description>
   <pubDate>Wed, 24 Nov 2004 15:58:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1454&amp;PID=4138&amp;title=printpreview-does-not-work#4138</guid>
  </item> 
 </channel>
</rss>