<?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 : problems printing dayview (bug?)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Calendar : problems printing dayview (bug?)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 11:18:20 +0000</pubDate>
  <lastBuildDate>Mon, 19 Jan 2009 08:34:16 +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=12520</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[problems printing dayview (bug?) : OK - put same conclusion in parallel...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44688&amp;title=problems-printing-dayview-bug#44688</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 12520<br /><strong>Posted:</strong> 19 January 2009 at 8:34am<br /><br /><P>OK - put same conclusion in parallel post https://forum.codejock.com/forum_posts.asp?TID=13189&amp;KW</P><DIV></DIV>]]>
   </description>
   <pubDate>Mon, 19 Jan 2009 08:34:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44688&amp;title=problems-printing-dayview-bug#44688</guid>
  </item> 
  <item>
   <title><![CDATA[problems printing dayview (bug?) : Replaced my code, tested.Working...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44680&amp;title=problems-printing-dayview-bug#44680</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2774">prashant</a><br /><strong>Subject:</strong> 12520<br /><strong>Posted:</strong> 19 January 2009 at 5:43am<br /><br />Replaced my code, tested.<br><br>Working very Fine :)<br><br>Also following bug got resolved:<br><br>https://forum.codejock.com/forum_posts.asp?TID=13189&amp;KW=<br><br>Thanks <img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" align="absmiddle"><br><br>]]>
   </description>
   <pubDate>Mon, 19 Jan 2009 05:43:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44680&amp;title=problems-printing-dayview-bug#44680</guid>
  </item> 
  <item>
   <title><![CDATA[problems printing dayview (bug?) : It means: in NonRTL mode Dec,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44652&amp;title=problems-printing-dayview-bug#44652</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 12520<br /><strong>Posted:</strong> 16 January 2009 at 10:26am<br /><br />It means: in NonRTL mode Dec, Jan, Feb order,<DIV>in RTL - Feb, Jan, Dec</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 16 Jan 2009 10:26:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44652&amp;title=problems-printing-dayview-bug#44652</guid>
  </item> 
  <item>
   <title><![CDATA[problems printing dayview (bug?) : I implemented RTL - NonRTL 3 small...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44651&amp;title=problems-printing-dayview-bug#44651</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 12520<br /><strong>Posted:</strong> 16 January 2009 at 10:25am<br /><br />I implemented RTL - NonRTL 3 small calendars in Page header function - this is updated code:<DIV><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> CXTPCalendarControlView::DrawDateHeader(BOOL bCalculate, CDC* pDC,</P><P>CXTPCalendarControlViewPrintOptions* pOptions,</P><P>CRect&amp; rrcHeader)</P><P>{</P><P>COleDateTime dtYearMonth1, dtYearMonth2;</P><P>CString strHeader1, strHeader2, strHeaderWeekDay;</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nMonths = _GetDateHeaderMonths(dtYearMonth1, dtYearMonth2, strHeader1, strHeader2, strHeaderWeekDay);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!strHeader2.IsEmpty())</P><P>strHeader1 += _T(</FONT><FONT color=#a31515 size=2>" -"</FONT><FONT size=2>);</P><P>CRect rcCalendar1 = rrcHeader;</P><P>CRect rcCalendar2(0, 0, 0, 0);</P><P>CRect rcCalendar3(0, 0, 0, 0);</P><P>BOOL bRTL = FALSE;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (GetCalendarCtrl().GetExStyle() &amp; WS_EX_LAYOUTRTL)</P><P>bRTL = TRUE;</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> iYear = dtYearMonth1.GetYear();</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> iMonth = dtYearMonth1.GetMonth();</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (nMonths == 1 &amp;&amp; pOptions-&gt;m_b3SmallCal)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (bRTL)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (iMonth &gt; 1)</P><P>iMonth--;</P><P></FONT><FONT color=#0000ff size=2>else</P></FONT><FONT size=2><P>{</P><P>iMonth = 12;</P><P>iYear--;</P><P>}</P><P>dtYearMonth1.SetDateTime(iYear, iMonth, 1,0,0,0);</P><P>}</P><P></FONT><FONT color=#0000ff size=2>else</P></FONT><FONT size=2><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (iMonth &lt; 12)</P><P>iMonth++;</P><P></FONT><FONT color=#0000ff size=2>else</P></FONT><FONT size=2><P>{</P><P>iMonth = 1;</P><P>iYear++;</P><P>}</P><P>dtYearMonth1.SetDateTime(iYear, iMonth, 1,0,0,0);</P><P>}</P><P>}</P><P>_DrawDateHeaderCalendar(TRUE, pDC, pOptions, dtYearMonth1, rcCalendar1);</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nCalendar1XPos = rrcHeader.right - rcCalendar1.Width() * 11/10;</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nCalendar2XPos = nCalendar1XPos;</P><P>CFont fntDateHeader;</P><P>VERIFY( fntDateHeader.CreateFontIndirect(&amp;pOptions-&gt;m_lfDateHeaderFont) );</P><P>CXTPFontDC fntDC(pDC, &amp;fntDateHeader);</P><P>CSize sizeText = pDC-&gt;GetTextExtent(strHeader1);</P><P>CFont fntDateHeaderWeekDay;</P><P>VERIFY( fntDateHeaderWeekDay.CreateFontIndirect(&amp;pOptions-&gt;m_lfDateHeaderWeekDayFont) );</P><P>fntDC.SetFont(&amp;fntDateHeaderWeekDay);</P><P>CSize sizeTextWD = pDC-&gt;GetTextExtent(_T(</FONT><FONT color=#a31515 size=2>"WD"</FONT><FONT size=2>), 2);</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nDatesCaptionHeight = sizeText.cy * 225/100 + sizeTextWD.cy * 125/100;</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nMaxHeight = max(rcCalendar1.Height() * 11/10, nDatesCaptionHeight);</P><P>rrcHeader.bottom = rrcHeader.top + nMaxHeight;</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nCalendarYPos = rrcHeader.top + nMaxHeight/2 - rcCalendar1.Height() / 2;</P><P>MoveRectToXY(rcCalendar1, nCalendar1XPos, nCalendarYPos);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (bCalculate)</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;</P><P></FONT><FONT color=#008000 size=2>//===========================================================================</P></FONT><FONT size=2><P>COLORREF clrPrev = pDC-&gt;SetTextColor(0);</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nBkModePrev = pDC-&gt;SetBkMode(TRANSPARENT);</P><P></FONT><FONT color=#008000 size=2>//---------------------------------------------------------------------------</P></FONT><FONT size=2><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (nMonths &gt; 1)</P><P>{</P><P>rcCalendar2 = rcCalendar1;</P><P>nCalendar2XPos = nCalendar1XPos - rcCalendar1.Width() * 11 / 10;</P><P>MoveRectToXY(rcCalendar1, nCalendar2XPos, nCalendarYPos);</P><P>}</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!m_pPrintOptions-&gt;m_bBlackWhitePrinting)</P><P>pDC-&gt;FillSolidRect(&amp;rrcHeader, RGB(229, 229, 229));</P><P>pDC-&gt;Draw3dRect(&amp;rrcHeader, 0, 0);</P><P>_DrawDateHeaderCalendar(FALSE, pDC, pOptions, dtYearMonth1, rcCalendar1);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (nMonths &gt; 1)</P><P>_DrawDateHeaderCalendar(FALSE, pDC, pOptions, dtYearMonth2, rcCalendar2);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (nMonths == 1 &amp;&amp; pOptions-&gt;m_b3SmallCal)</P><P>{</P><P>rcCalendar2 = rcCalendar1;</P><P>nCalendar2XPos = nCalendar1XPos - rcCalendar1.Width() * 11 / 10;</P><P>MoveRectToXY(rcCalendar2, nCalendar2XPos, nCalendarYPos);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (bRTL)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (iMonth &lt; 12)</P><P>iMonth++;</P><P></FONT><FONT color=#0000ff size=2>else</P></FONT><FONT size=2><P>{</P><P>iMonth = 1;</P><P>iYear++;</P><P>}</P><P>dtYearMonth1.SetDateTime(iYear, iMonth, 1,0,0,0);</P><P>}</P><P></FONT><FONT color=#0000ff size=2>else</P></FONT><FONT size=2><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (iMonth &gt; 1)</P><P>iMonth--;</P><P></FONT><FONT color=#0000ff size=2>else</P></FONT><FONT size=2><P>{</P><P>iMonth = 12;</P><P>iYear--;</P><P>}</P><P>dtYearMonth1.SetDateTime(iYear, iMonth, 1,0,0,0);</P><P>}</P><P>_DrawDateHeaderCalendar(FALSE, pDC, pOptions, dtYearMonth1, rcCalendar2);</P><P>rcCalendar3 = rcCalendar2;</P><P>nCalendar2XPos = nCalendar2XPos - rcCalendar2.Width() * 11 / 10;</P><P>MoveRectToXY(rcCalendar3, nCalendar2XPos, nCalendarYPos);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (bRTL)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (iMonth &lt; 12)</P><P>iMonth++;</P><P></FONT><FONT color=#0000ff size=2>else</P></FONT><FONT size=2><P>{</P><P>iMonth = 1;</P><P>iYear++;</P><P>}</P><P>dtYearMonth1.SetDateTime(iYear, iMonth, 1,0,0,0);</P><P>}</P><P></FONT><FONT color=#0000ff size=2>else</P></FONT><FONT size=2><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (iMonth &gt; 1)</P><P>iMonth--;</P><P></FONT><FONT color=#0000ff size=2>else</P></FONT><FONT size=2><P>{</P><P>iMonth = 12;</P><P>iYear--;</P><P>}</P><P>dtYearMonth1.SetDateTime(iYear, iMonth, 1,0,0,0);</P><P>}</P><P>_DrawDateHeaderCalendar(FALSE, pDC, pOptions, dtYearMonth1, rcCalendar3);</P><P>}</P><P>CRect rcHeader1(0, 0, 0, 0);</P><P>CRect rcHeader2(0, 0, 0, 0);</P><P>CRect rcHeader3(0, 0, 0, 0);</P><P>rcHeader1 = rrcHeader;</P><P>rcHeader1.DeflateRect(10, 5, 10, 5);</P><P>rcHeader1.right = nCalendar2XPos - 20;</P><P>rcHeader2 = rcHeader1;</P><P>fntDC.SetFont(&amp;fntDateHeader);</P><P>UINT uDrawFlags = DT_TOP | DT_LEFT | DT_WORDBREAK | DT_NOPREFIX;</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> nHeight1 = pDC-&gt;DrawText(strHeader1, &amp;rcHeader1, uDrawFlags);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!strHeader2.IsEmpty())</P><P>{</P><P>rcHeader2.top += nHeight1 + sizeText.cy / 4;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (rcHeader2.top &lt; rcHeader2.bottom)</P><P>{</P><P>pDC-&gt;DrawText(strHeader2, &amp;rcHeader2, uDrawFlags);</P><P>}</P><P>}</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (!strHeaderWeekDay.IsEmpty())</P><P>{</P><P>fntDC.SetFont(&amp;fntDateHeaderWeekDay);</P><P>rcHeader3 = rcHeader2;</P><P>rcHeader3.top += nHeight1 + sizeTextWD.cy / 5;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (rcHeader3.top &lt; rcHeader3.bottom)</P><P>{</P><P>pDC-&gt;DrawText(strHeaderWeekDay, &amp;rcHeader3, uDrawFlags);</P><P>}</P><P>}</P><P></FONT><FONT color=#008000 size=2>//---------------------------------------------------------------------------</P></FONT><FONT size=2><P>pDC-&gt;SetTextColor(clrPrev);</P><P>pDC-&gt;SetBkMode(nBkModePrev);</P><P>}</P><DIV></DIV></FONT></DIV>]]>
   </description>
   <pubDate>Fri, 16 Jan 2009 10:25:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44651&amp;title=problems-printing-dayview-bug#44651</guid>
  </item> 
  <item>
   <title><![CDATA[problems printing dayview (bug?) :  Hi Mark,Code is ok. Just reverse...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44633&amp;title=problems-printing-dayview-bug#44633</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2774">prashant</a><br /><strong>Subject:</strong> 12520<br /><strong>Posted:</strong> 16 January 2009 at 1:35am<br /><br />Hi Mark,<br><br>Code is ok. Just reverse the display sequence to:<br><br><b>( Previous - Current - Next ) &nbsp;&nbsp;&nbsp; i.e. Dec - Jan - Feb<br><br></b>Current sequence is:-<br><b>( </b><b>Next&nbsp;</b><b> - Current - </b><b>Previous </b><b>)&nbsp;&nbsp; i.e. Feb - Jan - Dec<br><br></b>Also as discussed try to add <b>"Page Setup"</b> button on Print preview Toolbar.<br>(Same as Outlook), please see attached image:<br><br><img src="uploads/20090116_013308_Print-Preview-T.JPG" border="0"><br>]]>
   </description>
   <pubDate>Fri, 16 Jan 2009 01:35:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44633&amp;title=problems-printing-dayview-bug#44633</guid>
  </item> 
  <item>
   <title><![CDATA[problems printing dayview (bug?) : uploads/20090115_122129_Resource.rar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44614&amp;title=problems-printing-dayview-bug#44614</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 12520<br /><strong>Posted:</strong> 15 January 2009 at 11:41am<br /><br /><a href="https://forum.codejock.com/uploads/20090115_122129_Resource.rar" target="_blank">uploads/20090115_122129_Resource.rar</A> <DIV>&nbsp;</DIV><DIV>Look in one of previous the post in the begining of post - I attached files there </DIV><DIV>You need update files form CalendarUpdates.rar into Source\Calendar</DIV><DIV>from Resource.rar - resource.h going&nbsp;&nbsp;to Source\Calendar</DIV><DIV>Resource.rc -&nbsp; into Source\Calendar\res</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 15 Jan 2009 11:41:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44614&amp;title=problems-printing-dayview-bug#44614</guid>
  </item> 
  <item>
   <title><![CDATA[problems printing dayview (bug?) : Mark,Can you please send me modified...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44601&amp;title=problems-printing-dayview-bug#44601</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2774">prashant</a><br /><strong>Subject:</strong> 12520<br /><strong>Posted:</strong> 15 January 2009 at 8:27am<br /><br />Mark,<br><br>Can you please send me modified files for Calendar Print Preview issue?<br><br>I already mailed you / Oleg at <a href="mailto:support@codejock.com" target="_blank">support@codejock.com</a><br><br>Thanks.<br>]]>
   </description>
   <pubDate>Thu, 15 Jan 2009 08:27:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44601&amp;title=problems-printing-dayview-bug#44601</guid>
  </item> 
  <item>
   <title><![CDATA[problems printing dayview (bug?) : Ok great, Nice work, thanks :)When...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44540&amp;title=problems-printing-dayview-bug#44540</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2774">prashant</a><br /><strong>Subject:</strong> 12520<br /><strong>Posted:</strong> 14 January 2009 at 3:31am<br /><br />Ok great, Nice work, thanks :)<br>When shall I expect release 13?<br><br>What you have added? Whether you gave option to user? or by default you are showing Next , Current and Previous month?<br><br>Thanks again.<br>]]>
   </description>
   <pubDate>Wed, 14 Jan 2009 03:31:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44540&amp;title=problems-printing-dayview-bug#44540</guid>
  </item> 
  <item>
   <title><![CDATA[problems printing dayview (bug?) : uploads/20090115_113916_CalendarUpdates.rarI...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44538&amp;title=problems-printing-dayview-bug#44538</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 12520<br /><strong>Posted:</strong> 14 January 2009 at 3:22am<br /><br /><a href="https://forum.codejock.com/uploads/20090115_113916_CalendarUpdates.rar" target="_blank">uploads/20090115_113916_CalendarUpdates.rar</A><img src="https://forum.codejock.com/uploads/20090114_112209_ScreenShot1.jpg" border="0">I mean see the snapshot in my previous note - it already go in release 13 <DIV>Default - 3 (only for 1 month or less selection) other case - old logic</DIV>]]>
   </description>
   <pubDate>Wed, 14 Jan 2009 03:22:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44538&amp;title=problems-printing-dayview-bug#44538</guid>
  </item> 
  <item>
   <title><![CDATA[problems printing dayview (bug?) : See Result??I didn&amp;#039;t understand..please...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44537&amp;title=problems-printing-dayview-bug#44537</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2774">prashant</a><br /><strong>Subject:</strong> 12520<br /><strong>Posted:</strong> 14 January 2009 at 3:19am<br /><br />See Result??<br><br>I didn't understand..please explain.<br>]]>
   </description>
   <pubDate>Wed, 14 Jan 2009 03:19:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12520&amp;PID=44537&amp;title=problems-printing-dayview-bug#44537</guid>
  </item> 
 </channel>
</rss>