<?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 : [QUESTION] Customize PrintPreview Toolbar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : [QUESTION] Customize PrintPreview Toolbar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 07:58:06 +0000</pubDate>
  <lastBuildDate>Sun, 16 Jan 2011 11:26:51 +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=17739</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[[QUESTION] Customize PrintPreview Toolbar : Personally, I&amp;#039;d like to be...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17739&amp;PID=62206&amp;title=question-customize-printpreview-toolbar#62206</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17739<br /><strong>Posted:</strong> 16 January 2011 at 11:26am<br /><br />Personally, I'd like to be able to hide the CJ CommandBar (which we can do), and use my own because I want to have different icons, and even have the buttons on a different part of my interface (not necessarily directly connected to the PrintPreview window).<br><br>The problem is, we don't have programmatic access to the following:<br><br>1) CurrentPage, TotalPages<br>2) PagesShown (i.e. 1x2, 3x3, etc... tiles of pages)<br>3) Working ZoomState Property*<br><br>Then we could do everything the current toolbar does, but customized to fit the look of our own apps. We could also then extend the functionality as required.<br><br><br><br>* ZoomState breaks the PrintPreview for me - if I set to to 100 for example, I get this output:<br><br><img src="uploads/2676/zoomstateproperty.jpg" height="487" width="928" border="0" /><br><br>But if I click on a Zoom level in the CommandBar, I get the expected output:<br><br><img src="uploads/2676/zoomcommandbar.jpg" height="468" width="484" border="0" /><br><br>So, this needs to be fixed :(<br><br><br>]]>
   </description>
   <pubDate>Sun, 16 Jan 2011 11:26:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17739&amp;PID=62206&amp;title=question-customize-printpreview-toolbar#62206</guid>
  </item> 
  <item>
   <title><![CDATA[[QUESTION] Customize PrintPreview Toolbar : Hi Jason, Thanks for reply. I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17739&amp;PID=62046&amp;title=question-customize-printpreview-toolbar#62046</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17739<br /><strong>Posted:</strong> 01 January 2011 at 5:40am<br /><br /><P>Hi Jason,</P><P>Thanks for reply. I tried many things but seems that you can't get reference of the toolbar. Maybe support team can shed a light on this...</P><P>Happy new year&nbsp;to you too !!!</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Sat, 01 Jan 2011 05:40:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17739&amp;PID=62046&amp;title=question-customize-printpreview-toolbar#62046</guid>
  </item> 
  <item>
   <title><![CDATA[[QUESTION] Customize PrintPreview Toolbar : I had hoped that something like...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17739&amp;PID=62038&amp;title=question-customize-printpreview-toolbar#62038</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2676">jpbro</a><br /><strong>Subject:</strong> 17739<br /><strong>Posted:</strong> 31 December 2010 at 9:40am<br /><br />I had hoped that something like this would work, but no luck:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Option Explicit<br><br>Private WithEvents mo_PreviewCommandBars As XtremeCommandBars.CommandBars<br><br>Private Sub Form_Load()<br>&nbsp;&nbsp; Set mo_PreviewCommandBars = Me.PrintPreview1.ToolBar.Parent<br>End Sub<br><br>Private Sub mo_PreviewCommandBars_Execute(ByVal Control As XtremeCommandBars.ICommandBarControl)<br>&nbsp;&nbsp; Debug.Print "EXECUTE"<br>End Sub<br></pre></td></tr></table><br><br>The Execute event never fires, even though the object appears to get set alright.<br><br>I can't imagine any other way to find out when a control is clicked - there are no appropriate events, and there is no hWnd property to try and do some subclassing.<br><br>Probably the best thing to do is to use the ToolbarVisible property (set to false) and then roll your own CommandBars. You need to use a little hack to get the PP to fill the available space after setting ToolbarVisible = False:<br><br><table width="99%"><tr><td><pre class="BBcode"><br>Private Sub Form_Load()<br>&nbsp;&nbsp; With Me.PrintPreview1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ToolBarVisible = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ' HACK: After setting ToolBarVisible = False the PrintPreview area<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; will have a blank space where the toolbar used to be.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If you resize the PP window, it will then fill all of the<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; available space.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Move .Left, .Top, .Width + Screen.TwipsPerPixelX, .Height<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .Move .Left, .Top, .Width - Screen.TwipsPerPixelX, .Height<br>&nbsp;&nbsp; End With<br>End Sub<br></pre></td></tr></table><br><br>Happy New Year!<br>]]>
   </description>
   <pubDate>Fri, 31 Dec 2010 09:40:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17739&amp;PID=62038&amp;title=question-customize-printpreview-toolbar#62038</guid>
  </item> 
  <item>
   <title><![CDATA[[QUESTION] Customize PrintPreview Toolbar : Hi,  I would like to add buttons...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17739&amp;PID=62037&amp;title=question-customize-printpreview-toolbar#62037</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17739<br /><strong>Posted:</strong> 31 December 2010 at 7:21am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>I would like to add buttons to the printpreview toolbar... I succeeded in doing this, but how can I&nbsp;catch execute event if user clicks on added button? </DIV><DIV>&nbsp;</DIV><DIV>Thanks a lot in advance</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 31 Dec 2010 07:21:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17739&amp;PID=62037&amp;title=question-customize-printpreview-toolbar#62037</guid>
  </item> 
 </channel>
</rss>