<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.office.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Power Tip: Scale Access Chart objects at runtime</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/08/26/scale-access-chart-objects-at-runtime.aspx</link><description>Today’s guest blogger is Peter De Baets of Peter’s Software , providing Microsoft Access tools to developers for over a decade including ShrinkerStretcher ,&amp;#160; KeyedAccess and many other products and free downloads. I've recently discovered an easy</description><dc:language>en-US</dc:language><generator>Telligent Community 1.5.134.15456 (Build: 5.5.134.15456)</generator><item><title>re: Power Tip: Scale Access Chart objects at runtime</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/08/26/scale-access-chart-objects-at-runtime.aspx#14200</link><pubDate>Sun, 29 Aug 2010 15:56:48 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14200</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;Thanks for the original code, and for responding to comments. After experimenting, I see now that the form dimensions still need the final adjustment, even though it seems like you have already accommodated the dimensions.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14200" width="1" height="1"&gt;</description></item><item><title>re: Power Tip: Scale Access Chart objects at runtime</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/08/26/scale-access-chart-objects-at-runtime.aspx#14201</link><pubDate>Fri, 27 Aug 2010 15:59:09 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14201</guid><dc:creator>Peter De Baets</dc:creator><description>&lt;p&gt;Steve, The form width and height are adjusted in case you are scaling down from a larger size. Without the adjustments, form scrollbars will appear. An alternative is to set the form ScrollBars property to &amp;quot;Neither&amp;quot;, then you don&amp;#39;t need to adjust the form width and height. Hope this helps, Peter De Baets&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14201" width="1" height="1"&gt;</description></item><item><title>re: Power Tip: Scale Access Chart objects at runtime</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/08/26/scale-access-chart-objects-at-runtime.aspx#14202</link><pubDate>Fri, 27 Aug 2010 14:58:19 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14202</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;Also, setting the form width and height at the end does not seem necessary, since you have already adjusted the control to match.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14202" width="1" height="1"&gt;</description></item><item><title>re: Power Tip: Scale Access Chart objects at runtime</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/08/26/scale-access-chart-objects-at-runtime.aspx#14203</link><pubDate>Fri, 27 Aug 2010 14:53:02 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14203</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;It&amp;#39;s worth noting that this code assumes .Left is zero initially. Also, if you have a header or footer, or if you display data above the chart, you may want to set the height as: .Height = Me.InsideHeight - .Top - Me.Section(acHeader).Height - Me.Section(acFooter).Height&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14203" width="1" height="1"&gt;</description></item><item><title>re: Power Tip: Scale Access Chart objects at runtime</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/08/26/scale-access-chart-objects-at-runtime.aspx#14204</link><pubDate>Fri, 27 Aug 2010 14:29:28 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14204</guid><dc:creator>Roger Perkins</dc:creator><description>&lt;p&gt;Hi Peter. I agree that the method in your original article gives a more polished result. Thanks for that - I&amp;#39;ll keep it by me for when the need arises. Roger.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14204" width="1" height="1"&gt;</description></item><item><title>re: Power Tip: Scale Access Chart objects at runtime</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/08/26/scale-access-chart-objects-at-runtime.aspx#14205</link><pubDate>Fri, 27 Aug 2010 13:33:47 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14205</guid><dc:creator>Peter De Baets</dc:creator><description>&lt;p&gt;Roger, Thanks for pointing out that you can get a similar result with Access 2007/2010 control anchors. I&amp;#39;ve done some testing as well by setting the Horizontal and Vertical control anchors to &amp;quot;Both&amp;quot;. Here&amp;#39;s what I noticed: - When using control anchors to scale the chart object, it scales smoothly beyond 9.7 inches, and the chart object always stays within the chart control.&lt;/p&gt;
&lt;p&gt;- As you noticed, when the form window is sized smaller than the chart control, the chart is cropped. A work-around would be to make the chart control fairly small so it can be scaled up.&lt;/p&gt;
&lt;p&gt;- Scaling up with this method scales up the size of the grid lines (and all the lines) in the chart. This may or may not be desirable.&lt;/p&gt;
&lt;p&gt;- These lines of code are helpful in the form OnOpen event procedure when scaling with the control anchor method. With Me!OLEUnbound0 &amp;#39;&amp;lt;-- Your chart control name goes here &amp;#39;* Make sure that the chart control size &amp;#39;* mode is set to &amp;#39;stretch&amp;#39; .SizeMode = acOLESizeStretch &amp;#39;* Make sure that chart fonts scale &amp;#39;* with the chart object .Object.ChartArea.AutoScaleFont = True&lt;/p&gt;
&lt;p&gt;End With - This method works with Access 2007 and later versions. All the best, Peter De Baets&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.peterssoftware.com"&gt;http://www.peterssoftware.com&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14205" width="1" height="1"&gt;</description></item><item><title>re: Power Tip: Scale Access Chart objects at runtime</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/08/26/scale-access-chart-objects-at-runtime.aspx#14206</link><pubDate>Fri, 27 Aug 2010 13:31:36 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14206</guid><dc:creator>Peter De Baets</dc:creator><description>&lt;p&gt;Srikanth, You can use: me!MyGraphControl.SeriesCollection(1).Interior.Color = vbRed ... to change the first series color to Red. Hope this helps, Peter De Baets&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14206" width="1" height="1"&gt;</description></item><item><title>re: Power Tip: Scale Access Chart objects at runtime</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/08/26/scale-access-chart-objects-at-runtime.aspx#14207</link><pubDate>Fri, 27 Aug 2010 05:51:45 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14207</guid><dc:creator>Roger Perkins</dc:creator><description>&lt;p&gt;I have just experimented using simply the anchoring facility in Access. It seems to work until the form gets smaller than the original size of the chart object, which is then cropped. I tried it in both a tabbed form, and a modal/popup form. Anchoring for the chart control was set Stretch down and accross.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14207" width="1" height="1"&gt;</description></item><item><title>re: Power Tip: Scale Access Chart objects at runtime</title><link>http://blogs.office.com/b/microsoft-access/archive/2010/08/26/scale-access-chart-objects-at-runtime.aspx#14208</link><pubDate>Fri, 27 Aug 2010 01:09:58 GMT</pubDate><guid isPermaLink="false">53587256-c606-4c9b-bad4-97c86b12ce62:14208</guid><dc:creator>Srikanth</dc:creator><description>&lt;p&gt;Thats a nice tip group.In the same way, I would like to know, that is there any option to color differently for a single bar (based on my own criteria) in this bar graph ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.office.com/aggbug.aspx?PostID=14208" width="1" height="1"&gt;</description></item></channel></rss>