<?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 : [SOLVED]Markup printing broken in XTP v17</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : [SOLVED]Markup printing broken in XTP v17]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 07:26:38 +0000</pubDate>
  <lastBuildDate>Sat, 06 Aug 2016 10:52:54 +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=22934</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[[SOLVED]Markup printing broken in XTP v17 : HiArtem,Thanks for the fix, it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74937&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74937</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 22934<br /><strong>Posted:</strong> 06 August 2016 at 10:52am<br /><br />Hi&nbsp;Artem,<div><br></div><div>Thanks for the fix, it appears to be working correctly now.&nbsp;<img src="http://forum.codejock.com/smileys/smiley32.gif" border="0" alt="Clap" title="Clap" /></div><div><br></div><div>Regards,</div><div><br></div><div>Mark R.</div>]]>
   </description>
   <pubDate>Sat, 06 Aug 2016 10:52:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74937&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74937</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]Markup printing broken in XTP v17 : Hello,I am glad to inform you,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74935&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74935</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> 22934<br /><strong>Posted:</strong> 06 August 2016 at 2:14am<br /><br />Hello,<br><br>I am glad to inform you, this issue has been fixed. Fix will be avaleble in next beta or final release.<br>As hotfix you can change file <b>XTPMarkupGdiPlusDeviceContext.cpp</b><br><br>&nbsp;- in fuction <b>void CXTPMarkupGdiPlusDeviceContext::Init(BOOL bReInit /*= FALSE*/) </b>add string <b>m_pGdiPlus-&gt;GdipSetPageUnit(GetGraphics(), UnitPixel);<br><br></b>&nbsp;- in function <b>virtual void Commit() </b>change <br><b>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pGDIP-&gt;GdipDrawImage(m_pDCEx-&gt;GetGraphics(),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pOffscreenImage,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; static_cast&lt;REAL&gt;(m_rect.left),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; static_cast&lt;REAL&gt;(m_rect.top));</b><br>to <br><b>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pGDIP-&gt;GdipDrawImageRect(m_pDCEx-&gt;GetGraphics(),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pOffscreenImage,<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; static_cast&lt;REAL&gt;(m_rect.left),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; static_cast&lt;REAL&gt;(m_rect.top),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; static_cast&lt;REAL&gt;(m_rect.Width()),<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; static_cast&lt;REAL&gt;(m_rect.Height()));</b><br><br>Regards,<br>Artem Gontarenko<br>]]>
   </description>
   <pubDate>Sat, 06 Aug 2016 02:14:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74935&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74935</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]Markup printing broken in XTP v17 : Any chance of getting this fixed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74831&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74831</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 22934<br /><strong>Posted:</strong> 21 June 2016 at 4:11pm<br /><br />Any chance of getting this fixed for the upcoming minor release?<div><br></div><div>- Mark R.</div>]]>
   </description>
   <pubDate>Tue, 21 Jun 2016 16:11:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74831&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74831</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]Markup printing broken in XTP v17 : Still no fix for this in 17.2....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74711&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74711</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 22934<br /><strong>Posted:</strong> 02 May 2016 at 4:08pm<br /><br />Still no fix for this in 17.2. &nbsp;:-(<div><br></div><div>- Mark R.</div>]]>
   </description>
   <pubDate>Mon, 02 May 2016 16:08:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74711&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74711</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]Markup printing broken in XTP v17 : Hi Mark,*Here is a quick example...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74514&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74514</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 22934<br /><strong>Posted:</strong> 24 February 2016 at 12:55pm<br /><br />Hi Mark,<br><br>*Here is a quick example of Printer Offset that I referred to. This sets up a page for printing. The "physical" sizes are used to adjust the "paper" to the printer device in case it is not one to one.<br><br>&nbsp;&nbsp;&nbsp; CPrintDialog&nbsp;&nbsp; &nbsp;printer( TRUE, PD_RETURNDC );<br>&nbsp;&nbsp; &nbsp;printer.GetDefaults();<br>&nbsp;&nbsp; &nbsp;HDC&nbsp;&nbsp; &nbsp;hdc = printer.GetPrinterDC();<br>&nbsp;&nbsp; &nbsp;if( hdc )<br>&nbsp;&nbsp; &nbsp;{<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; int horzSize = ::GetDeviceCaps( hdc, PHYSICALWIDTH );<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;int vertSize = ::GetDeviceCaps( hdc, PHYSICALHEIGHT );<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;int leftMargin = ::GetDeviceCaps( hdc, PHYSICALOFFSETX );<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;int topMargin = ::GetDeviceCaps( hdc, PHYSICALOFFSETY );<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;int horzPrintable = ::GetDeviceCaps( hdc, HORZRES );<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;int vertPrintable = ::GetDeviceCaps( hdc, VERTRES );<br><br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;int rightMargin = horzSize - ( horzPrintable + leftMargin );<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;int bottomMargin = vertSize - ( vertPrintable + topMargin );<br>&nbsp;&nbsp;&nbsp; }<br>]]>
   </description>
   <pubDate>Wed, 24 Feb 2016 12:55:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74514&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74514</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]Markup printing broken in XTP v17 :   Algae wrote:can often be attributed...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74505&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74505</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 22934<br /><strong>Posted:</strong> 24 February 2016 at 12:48am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Algae" alt="Originally posted by Algae" style="vertical-align: text-bottom;" /> <strong>Algae wrote:</strong><br /><br />can often be attributed to the physical "printer offset" either wrong or not factored in.</td></tr></table><div><br></div><div>Thanks for the info, but&nbsp;<span style="line-height: 1.4;">I'm not sure what you mean by this. Could you provide a reference to additional information on this topic?</span></div><div><br></div><div>- Mark R.</div>]]>
   </description>
   <pubDate>Wed, 24 Feb 2016 00:48:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74505&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74505</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]Markup printing broken in XTP v17 : I haven&amp;#039;t looked at the code...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74502&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74502</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 22934<br /><strong>Posted:</strong> 23 February 2016 at 6:39pm<br /><br />I haven't looked at the code or anything but symptoms as described <br><br>"preview is good, actual output not"<br><br>can often be attributed to the physical "printer offset" either wrong or not factored in.<br><br>That would be my guess. Hope you can get it straightened out.<br>]]>
   </description>
   <pubDate>Tue, 23 Feb 2016 18:39:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74502&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74502</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]Markup printing broken in XTP v17 : I noticed something else strange...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74501&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74501</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 22934<br /><strong>Posted:</strong> 23 February 2016 at 4:22pm<br /><br />I noticed something else strange about this problem - print preview works as expected.&nbsp;<div><br></div><div>Again, you can see this in MarkupPad - load any XAML and check the print preview. It renders correctly, but the actual print out does not.</div><div><br></div><div>What might be the cause of this?</div><div><br></div><div>- Mark R.</div>]]>
   </description>
   <pubDate>Tue, 23 Feb 2016 16:22:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74501&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74501</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]Markup printing broken in XTP v17 : Hello,It appears that themarkup...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74494&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74494</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=669">markr</a><br /><strong>Subject:</strong> 22934<br /><strong>Posted:</strong> 22 February 2016 at 4:34pm<br /><br />Hello,<div><br></div><div>It appears that the&nbsp;markup printing is not working as expected in XTP v17 and later.</div><div><br></div><div>A simple way to demonstrate the problem is to start the CodeJock MarkupPad utility. Load any valid markup, and then attempt to print.&nbsp;<span style="line-height: 1.4;">The resulting output will be disproportionately sized. We use the same code as MarkupPad in our applications (e.g. we use&nbsp;</span>CXTPMarkupPrintingContext, which derives from&nbsp;CXTPMarkupDrawingContext)<span style="line-height: 1.4;">.</span></div><div><span style="line-height: 1.4;"><br></span></div><div>Markup printing worked fine in the v16 release cycle.</div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">Any ideas for a workaround?</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">Regards,</span></div><div><span style="line-height: 1.4;"><br></span></div><div><span style="line-height: 1.4;">Mark R.</span></div>]]>
   </description>
   <pubDate>Mon, 22 Feb 2016 16:34:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22934&amp;PID=74494&amp;title=solvedmarkup-printing-broken-in-xtp-v17#74494</guid>
  </item> 
 </channel>
</rss>