<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Office Web Components (OWC) &#8211; Part V Spreadsheet control as datasource to Chart Control</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/07/28/office-web-components-owc-part-v-spreadsheet-control-as-datasource-to-chart-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/07/28/office-web-components-owc-part-v-spreadsheet-control-as-datasource-to-chart-control/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Jagadeesh</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/28/office-web-components-owc-part-v-spreadsheet-control-as-datasource-to-chart-control/#comment-43409</link>
		<dc:creator>Jagadeesh</dc:creator>
		<pubDate>Sun, 17 Jan 2010 22:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1199#comment-43409</guid>
		<description>&lt;p&gt;Hi Dennis,&lt;/p&gt;
&lt;p&gt;Thanks for your articles on owc. I am populating pivot chart using the code below. But, my problem is, after filtering the captions are not retained.&lt;/p&gt;
&lt;p&gt;The reason behind using the captions is that, Chart is not populating series with name having more than 23 characters. Please let me know how can we populate series names having more than 23 characters binded with oracle views?&lt;/p&gt;
&lt;p&gt;private void LoadPortfolioChart()&lt;br&gt;
        {&lt;br&gt;
            String datafile = null;&lt;br&gt;
            //string sqlCommand = @&quot;SELECT Year &quot;&quot;Year&quot;&quot;,Month &quot;&quot;Month&quot;&quot;,Week &quot;&quot;Week&quot;&quot;,Day &quot;&quot;Day&quot;&quot;,Hour &quot;&quot;Hour&quot;&quot;,ECO_GAS_UNDERCONTECO &quot;&quot;Eco_gas_UnderContEco&quot;&quot;, ECO_LIGNITEIN_MUST &quot;&quot;Eco_LigniteIN_Must&quot;&quot;,ECO_LIGNITEIN_UNDERCONTECO &quot;&quot;LigniteIN_UnderContEco&quot;&quot;,ECO_GAS_MUST &quot;&quot;Eco_Gas_Must&quot;&quot;,ECO_OUTRIGHTHYDRO_UNDERCONTECO &quot;&quot;Hydro_UnderContEco&quot;&quot;,ECO_OUTRIGHTHYDRO_MUST &quot;&quot;Eco_OutrightHydro_Must&quot;&quot;,ECO_COAL_UNDERCONTECO &quot;&quot;Eco_Coal_UnderContEco&quot;&quot;,ECO_COAL_MUST &quot;&quot;Eco_Coal_Must&quot;&quot;,ECO_LIGNITE_UNDERCONTECO &quot;&quot;Lignite_UnderContEco&quot;&quot;,ECO_LIGNITE_MUST &quot;&quot;Eco_Lignite_Must&quot;&quot;,ECO_OUTRIGHTVW_UNDERCONTECO &quot;&quot;VW_UnderContEco&quot;&quot;,ECO_OUTRIGHTVW_MUST &quot;&quot;Eco_OutrightVW_Must&quot;&quot;,ECO_OUTRIGHT_NUKE_UNDERCONTECO &quot;&quot;Nuke_UnderContEco&quot;&quot;,Eco_OutrightNuke_Must &quot;&quot;Nuke_Must&quot;&quot;,MAX_UNDERCONTROL &quot;&quot;Max_UnderControl&quot;&quot;,MAX_UNDERCONT_WILLI &quot;&quot;Max_UnderCont_Willi&quot;&quot;,SYS_HEDGEPOSAGG &quot;&quot;Sys_HedgePosAgg&quot;&quot;,SALES_NET &quot;&quot;Sales_Net&quot;&quot; FROM PRODUCTIONUNDERCONTROLHEDGEPOS ORDER BY TRADEDATE&quot;;&lt;br&gt;
            datafile = GetOWCXML(&quot;FetchEconomicGendHedges&quot;);&lt;/p&gt;
&lt;p&gt;            enlargedGraphAxChartSpace.Clear();&lt;br&gt;
            enlargedGraphAxChartSpace.ConnectionString = &quot;provider=mspersist&quot;;&lt;br&gt;
            enlargedGraphAxChartSpace.CommandText = datafile;&lt;/p&gt;
&lt;p&gt;            //2&lt;br&gt;
            //string strresult = ExportUtils.GetADORecordSet(dataSetEcoMax, System.IO.Directory.GetCurrentDirectory());&lt;/p&gt;
&lt;p&gt;            //System.Xml.XmlDocument oxmldoc = new System.Xml.XmlDocument();&lt;/p&gt;
&lt;p&gt;            ////Load the XML recordset into the XML Document object.&lt;br&gt;
            //oxmldoc.LoadXml(strresult);&lt;/p&gt;
&lt;p&gt;            ////Save it to disk file.&lt;br&gt;
            //oxmldoc.Save(datafile);&lt;/p&gt;
&lt;p&gt;            //3&lt;br&gt;
            //string connectionString = &quot;Provider=MSDAORA.1;Password=TU_PROPOMT;User ID=TU_PROPOMT;Data Source=XE.WORLD&quot;;&lt;/p&gt;
&lt;p&gt;            //enlargedGraphAxChartSpace.Clear();&lt;br&gt;
            //enlargedGraphAxChartSpace.ConnectionString = connectionString;&lt;br&gt;
            //enlargedGraphAxChartSpace.DataMember = &quot;PRODUCTIONUNDERCONTROLHEDGEPOS&quot;;&lt;br&gt;
            //enlargedGraphAxChartSpace.CommandText = &quot;SELECT Year,Month,Week,Day,Hour,ECO_GAS_UNDERCONTECO, ECO_LIGNITEIN_MUST,ECO_LIGNITEIN_UNDERCONTECO LIGNITEIN_UNDERCONTECO,ECO_GAS_MUST,ECO_OUTRIGHTHYDRO_UNDERCONTECO HYDRO_UNDERCONTECO,ECO_OUTRIGHTHYDRO_MUST,ECO_COAL_UNDERCONTECO,ECO_COAL_MUST,ECO_LIGNITE_UNDERCONTECO LIGNITE_UNDERCONTECO,ECO_LIGNITE_MUST,ECO_OUTRIGHTVW_UNDERCONTECO VW_UNDERCONTECO,ECO_OUTRIGHTVW_MUST,ECO_OUTRIGHT_NUKE_UNDERCONTECO NUKE_UNDERCONTECO,Eco_OutrightNuke_Must NUKE_MUST,MAX_UNDERCONTROL,MAX_UNDERCONT_WILLI,SYS_HEDGEPOSAGG,SALES_NET FROM PRODUCTIONUNDERCONTROLHEDGEPOS&quot;;&lt;/p&gt;
&lt;p&gt;            enlargedGraphAxChartSpace.Charts[0].PlotArea.Interior.Color = &quot;White&quot;;&lt;/p&gt;
&lt;p&gt;            //Specify if the chart needs to have legend.&lt;br&gt;
            enlargedGraphAxChartSpace.Charts[0].HasLegend = true;&lt;/p&gt;
&lt;p&gt;            enlargedGraphAxChartSpace.AllowFiltering = true;&lt;br&gt;
            enlargedGraphAxChartSpace.AllowGrouping = true;&lt;/p&gt;
&lt;p&gt;            enlargedGraphAxChartSpace.EnableEvents = true;&lt;br&gt;
            enlargedGraphAxChartSpace.HasRuntimeSelection = false;&lt;/p&gt;
&lt;p&gt;            enlargedGraphAxChartSpace.DisplayToolbar = false;&lt;br&gt;
            enlargedGraphAxChartSpace.DisplayPropertyToolbox = false;&lt;br&gt;
            enlargedGraphAxChartSpace.DisplayFieldList = false;&lt;br&gt;
            //By setting this property to false a standard chart&lt;br&gt;
            //and not a PivotChart is created.&lt;br&gt;
            enlargedGraphAxChartSpace.DisplayFieldButtons = true;&lt;/p&gt;
&lt;p&gt;            //Prevent the user(s) from doing anything else except filter the data&lt;br&gt;
            //and add / remove fields.&lt;br&gt;
            enlargedGraphAxChartSpace.AllowUISelection = false;&lt;br&gt;
            enlargedGraphAxChartSpace.HasMultipleCharts = false;&lt;/p&gt;
&lt;p&gt;            enlargedGraphAxChartSpace.PlotAllAggregates = ChartPlotAggregatesEnum.chPlotAggregatesSeries;&lt;br&gt;
            //Give chart X and Y title&lt;br&gt;
            enlargedGraphAxChartSpace.Charts[0].Axes[0].HasTitle = true;&lt;br&gt;
            enlargedGraphAxChartSpace.Charts[0].Axes[0].Title.Caption = &quot;Delivery Period&quot;;&lt;br&gt;
            enlargedGraphAxChartSpace.Charts[0].Axes[0].Title.Font.Bold = true;&lt;br&gt;
            enlargedGraphAxChartSpace.Charts[0].Axes[1].HasTitle = true;&lt;br&gt;
            enlargedGraphAxChartSpace.Charts[0].Axes[1].Title.Caption = &quot;Volume&quot;;&lt;br&gt;
            enlargedGraphAxChartSpace.Charts[0].Axes[1].Title.Font.Bold = true;&lt;/p&gt;
&lt;p&gt;            //set Y Axis Min and Max Values&lt;br&gt;
            //TODO: Remove hardcoding of min and max&lt;br&gt;
            //enlargedGraphAxChartSpace.Charts[0].Axes[1].Scaling.Maximum = 15000;&lt;br&gt;
            enlargedGraphAxChartSpace.Charts[0].Axes[1].Scaling.Minimum = 5000;&lt;br&gt;
            //enlargedGraphAxChartSpace.Charts[0].Axes[1].MajorUnit = 2000;&lt;/p&gt;
&lt;p&gt;            enlargedGraphAxChartSpace.Charts[0].Axes[1].NumberFormat = &quot;#,##0 &quot;MW&quot;&quot;;&lt;br&gt;
            enlargedGraphAxChartSpace.Charts[0].Type = ChartChartTypeEnum.chChartTypeAreaStacked;&lt;/p&gt;
&lt;p&gt;            object[] aNames = { &quot;MONTH&quot;, &quot;WEEK&quot;, &quot;DAY&quot;, &quot;HOUR&quot; };&lt;/p&gt;
&lt;p&gt;            object[] aTotals = {  &quot;SYS_HEDGEPOSAGG&quot;,&quot;SALES_NET&quot;,&quot;MAX_UNDERCONT_WILLI&quot;,&quot;MAX_UNDERCONTROL&quot;,&lt;br&gt;
                               &quot;NUKE_MUST&quot;,&quot;NUKE_UNDERCONTECO&quot;,&quot;ECO_OUTRIGHTVW_MUST&quot;,&quot;VW_UNDERCONTECO&quot;,&lt;br&gt;
                               &quot;ECO_LIGNITE_MUST&quot;,&quot;LIGNITE_UNDERCONTECO&quot;,&quot;ECO_COAL_MUST&quot;,&quot;ECO_COAL_UNDERCONTECO&quot;,&lt;br&gt;
                               &quot;ECO_OUTRIGHTHYDRO_MUST&quot;,&quot;ECO_OUTRIGHTHYDRO_UNDERCONTECO&quot;,&quot;LIGNITEIN_UNDERCONTECO&quot;,&lt;br&gt;
                               &quot;ECO_LIGNITEIN_MUST&quot;, &quot;ECO_GAS_MUST&quot;,&quot;ECO_GAS_UNDERCONTECO&quot;&lt;br&gt;
                               };&lt;/p&gt;
&lt;p&gt;            enlargedGraphAxChartSpace.SetData(Microsoft.Office.Interop.Owc11.ChartDimensionsEnum.chDimFilter,&lt;br&gt;
                (int)ChartSpecialDataSourcesEnum.chDataBound, &quot;YEAR&quot;);&lt;br&gt;
            enlargedGraphAxChartSpace.SetData(Microsoft.Office.Interop.Owc11.ChartDimensionsEnum.chDimValues,&lt;br&gt;
                (int)ChartSpecialDataSourcesEnum.chDataBound, aTotals);&lt;br&gt;
            enlargedGraphAxChartSpace.SetData(Microsoft.Office.Interop.Owc11.ChartDimensionsEnum.chDimCategories,&lt;br&gt;
                (int)ChartSpecialDataSourcesEnum.chDataBound, aNames);&lt;br&gt;
            if (enlargedGraphAxChartSpace.Charts[0].SeriesCollection.Count &gt; 0)&lt;br&gt;
            {&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of NUKE_MUST&quot;].Interior.SetPatterned(ChartPatternTypeEnum.chPatternWeave, &quot;White&quot;, &quot;DimGray&quot;);&lt;br&gt;
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of NUKE_MUST&quot;].Caption = &quot;Sum of Eco_OutrightNuke_Must&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of NUKE_UNDERCONTECO&quot;].Interior.SetSolid(&quot;DimGray&quot;);&lt;br&gt;
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of NUKE_UNDERCONTECO&quot;].Caption = &quot;Sum of Eco_Outright_Nuke_UnderContEco&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_OUTRIGHTVW_MUST&quot;].Interior.SetPatterned(ChartPatternTypeEnum.chPatternWeave, &quot;White&quot;, &quot;Gray&quot;);&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of VW_UNDERCONTECO&quot;].Interior.SetSolid(&quot;Gray&quot;);&lt;br&gt;
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of VW_UNDERCONTECO&quot;].Caption = &quot;Sum of Eco_OutrightVW_UnderContEco&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_LIGNITE_MUST&quot;].Interior.SetPatterned(ChartPatternTypeEnum.chPatternWeave, &quot;White&quot;, &quot;Maroon&quot;);&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of LIGNITE_UNDERCONTECO&quot;].Interior.SetSolid(&quot;Maroon&quot;);&lt;br&gt;
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of LIGNITE_UNDERCONTECO&quot;].Caption = &quot;Sum of Eco_Lignite_UnderContEco&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_COAL_MUST&quot;].Interior.SetPatterned(ChartPatternTypeEnum.chPatternWeave, &quot;White&quot;, &quot;Silver&quot;);&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_COAL_UNDERCONTECO&quot;].Interior.SetSolid(&quot;Silver&quot;);&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_OUTRIGHTHYDRO_MUST&quot;].Interior.SetPatterned(ChartPatternTypeEnum.chPatternWeave, &quot;White&quot;, &quot;RoyalBlue&quot;);&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of HYDRO_UNDERCONTECO&quot;].Interior.SetSolid(&quot;RoyalBlue&quot;);&lt;br&gt;
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of HYDRO_UNDERCONTECO&quot;].Caption = &quot;Sum of Eco_OutrightHydro_UnderContEco&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of LIGNITEIN_UNDERCONTECO&quot;].Interior.SetSolid(&quot;Sienna&quot;);&lt;br&gt;
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of LIGNITEIN_UNDERCONTECO&quot;].Caption = &quot;Sum of Eco_LigniteIN_UnderContEco&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_LIGNITEIN_MUST&quot;].Interior.SetPatterned(ChartPatternTypeEnum.chPatternWeave, &quot;White&quot;, &quot;Sienna&quot;);&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_GAS_UNDERCONTECO&quot;].Interior.SetSolid(&quot;Gold&quot;);&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_GAS_MUST&quot;].Interior.SetPatterned(ChartPatternTypeEnum.chPatternWeave, &quot;White&quot;, &quot;Gold&quot;);&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of MAX_UNDERCONTROL&quot;].Type = ChartChartTypeEnum.chChartTypeLine;&lt;br&gt;
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of MAX_UNDERCONTROL&quot;].Line.Color = &quot;Black&quot;;&lt;br&gt;
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of MAX_UNDERCONTROL&quot;].Line.set_Weight((LineWeightEnum)int.Parse(&quot;1?));&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of MAX_UNDERCONT_WILLI&quot;].Type = ChartChartTypeEnum.chChartTypeLine;&lt;br&gt;
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of MAX_UNDERCONT_WILLI&quot;].Line.Color = &quot;Lime&quot;;&lt;br&gt;
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of MAX_UNDERCONT_WILLI&quot;].Line.set_Weight((LineWeightEnum)int.Parse(&quot;1?));&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of SALES_NET&quot;].Type = ChartChartTypeEnum.chChartTypeLine;&lt;br&gt;
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of SALES_NET&quot;].Line.Color = &quot;Red&quot;;&lt;br&gt;
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of SALES_NET&quot;].Line.set_Weight((LineWeightEnum)int.Parse(&quot;1?));&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of SYS_HEDGEPOSAGG&quot;].Type = ChartChartTypeEnum.chChartTypeLine;&lt;br&gt;
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of SYS_HEDGEPOSAGG&quot;].Line.Color = &quot;Black&quot;;&lt;/p&gt;
&lt;p&gt;                //enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of SALES_NET&quot;].Ungroup(true);&lt;br&gt;
                //enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of SYS_HEDGEPOSAGG&quot;].Ungroup(true);&lt;br&gt;
                //enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of SALES_NET&quot;].Group(enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of SYS_HEDGEPOSAGG&quot;]);&lt;br&gt;
                //enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of SYS_HEDGEPOSAGG&quot;].Group(enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of SALES_NET&quot;]);&lt;/p&gt;
&lt;p&gt;                //ChAxis Caxix2 = enlargedGraphAxChartSpace.Charts[0].Axes.Add(enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of SYS_HEDGEPOSAGG&quot;].get_Scalings(ChartDimensionsEnum.chDimValues));&lt;br&gt;
                //Caxix2.Position = OWC10.ChartAxisPositionEnum.chAxisPositionRight; &lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of NUKE_MUST&quot;].Border.Color = &quot;DimGray&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of NUKE_UNDERCONTECO&quot;].Border.Color = &quot;DimGray&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_OUTRIGHTVW_MUST&quot;].Border.Color = &quot;Gray&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of VW_UNDERCONTECO&quot;].Border.Color = &quot;Gray&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_LIGNITE_MUST&quot;].Border.Color = &quot;Maroon&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of LIGNITE_UNDERCONTECO&quot;].Border.Color = &quot;Maroon&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_COAL_MUST&quot;].Border.Color = &quot;Silver&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_COAL_UNDERCONTECO&quot;].Border.Color = &quot;Silver&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_OUTRIGHTHYDRO_MUST&quot;].Border.Color = &quot;RoyalBlue&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of HYDRO_UNDERCONTECO&quot;].Border.Color = &quot;RoyalBlue&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of LIGNITEIN_UNDERCONTECO&quot;].Border.Color = &quot;Sienna&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_LIGNITEIN_MUST&quot;].Border.Color = &quot;Sienna&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_GAS_UNDERCONTECO&quot;].Border.Color = &quot;Gold&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of ECO_GAS_MUST&quot;].Border.Color = &quot;Gold&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of MAX_UNDERCONTROL&quot;].Border.Color = &quot;Black&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of MAX_UNDERCONT_WILLI&quot;].Border.Color = &quot;Lime&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of SALES_NET&quot;].Border.Color = &quot;Red&quot;;&lt;/p&gt;
&lt;p&gt;                enlargedGraphAxChartSpace.Charts[0].SeriesCollection[&quot;Sum of SYS_HEDGEPOSAGG&quot;].Border.Color = &quot;Black&quot;;&lt;/p&gt;
&lt;p&gt;            }&lt;/p&gt;
&lt;p&gt;        }&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Dennis,</p>
<p>Thanks for your articles on owc. I am populating pivot chart using the code below. But, my problem is, after filtering the captions are not retained.</p>
<p>The reason behind using the captions is that, Chart is not populating series with name having more than 23 characters. Please let me know how can we populate series names having more than 23 characters binded with oracle views?</p>
<p>private void LoadPortfolioChart()<br />
        {<br />
            String datafile = null;<br />
            //string sqlCommand = @&#8221;SELECT Year &#8220;&#8221;Year&#8221;",Month &#8220;&#8221;Month&#8221;",Week &#8220;&#8221;Week&#8221;",Day &#8220;&#8221;Day&#8221;",Hour &#8220;&#8221;Hour&#8221;",ECO_GAS_UNDERCONTECO &#8220;&#8221;Eco_gas_UnderContEco&#8221;", ECO_LIGNITEIN_MUST &#8220;&#8221;Eco_LigniteIN_Must&#8221;",ECO_LIGNITEIN_UNDERCONTECO &#8220;&#8221;LigniteIN_UnderContEco&#8221;",ECO_GAS_MUST &#8220;&#8221;Eco_Gas_Must&#8221;",ECO_OUTRIGHTHYDRO_UNDERCONTECO &#8220;&#8221;Hydro_UnderContEco&#8221;",ECO_OUTRIGHTHYDRO_MUST &#8220;&#8221;Eco_OutrightHydro_Must&#8221;",ECO_COAL_UNDERCONTECO &#8220;&#8221;Eco_Coal_UnderContEco&#8221;",ECO_COAL_MUST &#8220;&#8221;Eco_Coal_Must&#8221;",ECO_LIGNITE_UNDERCONTECO &#8220;&#8221;Lignite_UnderContEco&#8221;",ECO_LIGNITE_MUST &#8220;&#8221;Eco_Lignite_Must&#8221;",ECO_OUTRIGHTVW_UNDERCONTECO &#8220;&#8221;VW_UnderContEco&#8221;",ECO_OUTRIGHTVW_MUST &#8220;&#8221;Eco_OutrightVW_Must&#8221;",ECO_OUTRIGHT_NUKE_UNDERCONTECO &#8220;&#8221;Nuke_UnderContEco&#8221;",Eco_OutrightNuke_Must &#8220;&#8221;Nuke_Must&#8221;",MAX_UNDERCONTROL &#8220;&#8221;Max_UnderControl&#8221;",MAX_UNDERCONT_WILLI &#8220;&#8221;Max_UnderCont_Willi&#8221;",SYS_HEDGEPOSAGG &#8220;&#8221;Sys_HedgePosAgg&#8221;",SALES_NET &#8220;&#8221;Sales_Net&#8221;" FROM PRODUCTIONUNDERCONTROLHEDGEPOS ORDER BY TRADEDATE&#8221;;<br />
            datafile = GetOWCXML(&#8220;FetchEconomicGendHedges&#8221;);</p>
<p>            enlargedGraphAxChartSpace.Clear();<br />
            enlargedGraphAxChartSpace.ConnectionString = &#8220;provider=mspersist&#8221;;<br />
            enlargedGraphAxChartSpace.CommandText = datafile;</p>
<p>            //2<br />
            //string strresult = ExportUtils.GetADORecordSet(dataSetEcoMax, System.IO.Directory.GetCurrentDirectory());</p>
<p>            //System.Xml.XmlDocument oxmldoc = new System.Xml.XmlDocument();</p>
<p>            ////Load the XML recordset into the XML Document object.<br />
            //oxmldoc.LoadXml(strresult);</p>
<p>            ////Save it to disk file.<br />
            //oxmldoc.Save(datafile);</p>
<p>            //3<br />
            //string connectionString = &#8220;Provider=MSDAORA.1;Password=TU_PROPOMT;User ID=TU_PROPOMT;Data Source=XE.WORLD&#8221;;</p>
<p>            //enlargedGraphAxChartSpace.Clear();<br />
            //enlargedGraphAxChartSpace.ConnectionString = connectionString;<br />
            //enlargedGraphAxChartSpace.DataMember = &#8220;PRODUCTIONUNDERCONTROLHEDGEPOS&#8221;;<br />
            //enlargedGraphAxChartSpace.CommandText = &#8220;SELECT Year,Month,Week,Day,Hour,ECO_GAS_UNDERCONTECO, ECO_LIGNITEIN_MUST,ECO_LIGNITEIN_UNDERCONTECO LIGNITEIN_UNDERCONTECO,ECO_GAS_MUST,ECO_OUTRIGHTHYDRO_UNDERCONTECO HYDRO_UNDERCONTECO,ECO_OUTRIGHTHYDRO_MUST,ECO_COAL_UNDERCONTECO,ECO_COAL_MUST,ECO_LIGNITE_UNDERCONTECO LIGNITE_UNDERCONTECO,ECO_LIGNITE_MUST,ECO_OUTRIGHTVW_UNDERCONTECO VW_UNDERCONTECO,ECO_OUTRIGHTVW_MUST,ECO_OUTRIGHT_NUKE_UNDERCONTECO NUKE_UNDERCONTECO,Eco_OutrightNuke_Must NUKE_MUST,MAX_UNDERCONTROL,MAX_UNDERCONT_WILLI,SYS_HEDGEPOSAGG,SALES_NET FROM PRODUCTIONUNDERCONTROLHEDGEPOS&#8221;;</p>
<p>            enlargedGraphAxChartSpace.Charts[0].PlotArea.Interior.Color = &#8220;White&#8221;;</p>
<p>            //Specify if the chart needs to have legend.<br />
            enlargedGraphAxChartSpace.Charts[0].HasLegend = true;</p>
<p>            enlargedGraphAxChartSpace.AllowFiltering = true;<br />
            enlargedGraphAxChartSpace.AllowGrouping = true;</p>
<p>            enlargedGraphAxChartSpace.EnableEvents = true;<br />
            enlargedGraphAxChartSpace.HasRuntimeSelection = false;</p>
<p>            enlargedGraphAxChartSpace.DisplayToolbar = false;<br />
            enlargedGraphAxChartSpace.DisplayPropertyToolbox = false;<br />
            enlargedGraphAxChartSpace.DisplayFieldList = false;<br />
            //By setting this property to false a standard chart<br />
            //and not a PivotChart is created.<br />
            enlargedGraphAxChartSpace.DisplayFieldButtons = true;</p>
<p>            //Prevent the user(s) from doing anything else except filter the data<br />
            //and add / remove fields.<br />
            enlargedGraphAxChartSpace.AllowUISelection = false;<br />
            enlargedGraphAxChartSpace.HasMultipleCharts = false;</p>
<p>            enlargedGraphAxChartSpace.PlotAllAggregates = ChartPlotAggregatesEnum.chPlotAggregatesSeries;<br />
            //Give chart X and Y title<br />
            enlargedGraphAxChartSpace.Charts[0].Axes[0].HasTitle = true;<br />
            enlargedGraphAxChartSpace.Charts[0].Axes[0].Title.Caption = &#8220;Delivery Period&#8221;;<br />
            enlargedGraphAxChartSpace.Charts[0].Axes[0].Title.Font.Bold = true;<br />
            enlargedGraphAxChartSpace.Charts[0].Axes[1].HasTitle = true;<br />
            enlargedGraphAxChartSpace.Charts[0].Axes[1].Title.Caption = &#8220;Volume&#8221;;<br />
            enlargedGraphAxChartSpace.Charts[0].Axes[1].Title.Font.Bold = true;</p>
<p>            //set Y Axis Min and Max Values<br />
            //TODO: Remove hardcoding of min and max<br />
            //enlargedGraphAxChartSpace.Charts[0].Axes[1].Scaling.Maximum = 15000;<br />
            enlargedGraphAxChartSpace.Charts[0].Axes[1].Scaling.Minimum = 5000;<br />
            //enlargedGraphAxChartSpace.Charts[0].Axes[1].MajorUnit = 2000;</p>
<p>            enlargedGraphAxChartSpace.Charts[0].Axes[1].NumberFormat = &#8220;#,##0 &#8220;MW&#8221;";<br />
            enlargedGraphAxChartSpace.Charts[0].Type = ChartChartTypeEnum.chChartTypeAreaStacked;</p>
<p>            object[] aNames = { &#8220;MONTH&#8221;, &#8220;WEEK&#8221;, &#8220;DAY&#8221;, &#8220;HOUR&#8221; };</p>
<p>            object[] aTotals = {  &#8220;SYS_HEDGEPOSAGG&#8221;,&#8221;SALES_NET&#8221;,&#8221;MAX_UNDERCONT_WILLI&#8221;,&#8221;MAX_UNDERCONTROL&#8221;,<br />
                               &#8220;NUKE_MUST&#8221;,&#8221;NUKE_UNDERCONTECO&#8221;,&#8221;ECO_OUTRIGHTVW_MUST&#8221;,&#8221;VW_UNDERCONTECO&#8221;,<br />
                               &#8220;ECO_LIGNITE_MUST&#8221;,&#8221;LIGNITE_UNDERCONTECO&#8221;,&#8221;ECO_COAL_MUST&#8221;,&#8221;ECO_COAL_UNDERCONTECO&#8221;,<br />
                               &#8220;ECO_OUTRIGHTHYDRO_MUST&#8221;,&#8221;ECO_OUTRIGHTHYDRO_UNDERCONTECO&#8221;,&#8221;LIGNITEIN_UNDERCONTECO&#8221;,<br />
                               &#8220;ECO_LIGNITEIN_MUST&#8221;, &#8220;ECO_GAS_MUST&#8221;,&#8221;ECO_GAS_UNDERCONTECO&#8221;<br />
                               };</p>
<p>            enlargedGraphAxChartSpace.SetData(Microsoft.Office.Interop.Owc11.ChartDimensionsEnum.chDimFilter,<br />
                (int)ChartSpecialDataSourcesEnum.chDataBound, &#8220;YEAR&#8221;);<br />
            enlargedGraphAxChartSpace.SetData(Microsoft.Office.Interop.Owc11.ChartDimensionsEnum.chDimValues,<br />
                (int)ChartSpecialDataSourcesEnum.chDataBound, aTotals);<br />
            enlargedGraphAxChartSpace.SetData(Microsoft.Office.Interop.Owc11.ChartDimensionsEnum.chDimCategories,<br />
                (int)ChartSpecialDataSourcesEnum.chDataBound, aNames);<br />
            if (enlargedGraphAxChartSpace.Charts[0].SeriesCollection.Count &gt; 0)<br />
            {</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of NUKE_MUST"].Interior.SetPatterned(ChartPatternTypeEnum.chPatternWeave, &#8220;White&#8221;, &#8220;DimGray&#8221;);<br />
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of NUKE_MUST"].Caption = &#8220;Sum of Eco_OutrightNuke_Must&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of NUKE_UNDERCONTECO"].Interior.SetSolid(&#8220;DimGray&#8221;);<br />
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of NUKE_UNDERCONTECO"].Caption = &#8220;Sum of Eco_Outright_Nuke_UnderContEco&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_OUTRIGHTVW_MUST"].Interior.SetPatterned(ChartPatternTypeEnum.chPatternWeave, &#8220;White&#8221;, &#8220;Gray&#8221;);</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of VW_UNDERCONTECO"].Interior.SetSolid(&#8220;Gray&#8221;);<br />
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of VW_UNDERCONTECO"].Caption = &#8220;Sum of Eco_OutrightVW_UnderContEco&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_LIGNITE_MUST"].Interior.SetPatterned(ChartPatternTypeEnum.chPatternWeave, &#8220;White&#8221;, &#8220;Maroon&#8221;);</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of LIGNITE_UNDERCONTECO"].Interior.SetSolid(&#8220;Maroon&#8221;);<br />
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of LIGNITE_UNDERCONTECO"].Caption = &#8220;Sum of Eco_Lignite_UnderContEco&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_COAL_MUST"].Interior.SetPatterned(ChartPatternTypeEnum.chPatternWeave, &#8220;White&#8221;, &#8220;Silver&#8221;);</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_COAL_UNDERCONTECO"].Interior.SetSolid(&#8220;Silver&#8221;);</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_OUTRIGHTHYDRO_MUST"].Interior.SetPatterned(ChartPatternTypeEnum.chPatternWeave, &#8220;White&#8221;, &#8220;RoyalBlue&#8221;);</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of HYDRO_UNDERCONTECO"].Interior.SetSolid(&#8220;RoyalBlue&#8221;);<br />
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of HYDRO_UNDERCONTECO"].Caption = &#8220;Sum of Eco_OutrightHydro_UnderContEco&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of LIGNITEIN_UNDERCONTECO"].Interior.SetSolid(&#8220;Sienna&#8221;);<br />
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of LIGNITEIN_UNDERCONTECO"].Caption = &#8220;Sum of Eco_LigniteIN_UnderContEco&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_LIGNITEIN_MUST"].Interior.SetPatterned(ChartPatternTypeEnum.chPatternWeave, &#8220;White&#8221;, &#8220;Sienna&#8221;);</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_GAS_UNDERCONTECO"].Interior.SetSolid(&#8220;Gold&#8221;);</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_GAS_MUST"].Interior.SetPatterned(ChartPatternTypeEnum.chPatternWeave, &#8220;White&#8221;, &#8220;Gold&#8221;);</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of MAX_UNDERCONTROL"].Type = ChartChartTypeEnum.chChartTypeLine;<br />
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of MAX_UNDERCONTROL"].Line.Color = &#8220;Black&#8221;;<br />
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of MAX_UNDERCONTROL"].Line.set_Weight((LineWeightEnum)int.Parse(&#8220;1?));</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of MAX_UNDERCONT_WILLI"].Type = ChartChartTypeEnum.chChartTypeLine;<br />
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of MAX_UNDERCONT_WILLI"].Line.Color = &#8220;Lime&#8221;;<br />
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of MAX_UNDERCONT_WILLI"].Line.set_Weight((LineWeightEnum)int.Parse(&#8220;1?));</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of SALES_NET"].Type = ChartChartTypeEnum.chChartTypeLine;<br />
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of SALES_NET"].Line.Color = &#8220;Red&#8221;;<br />
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of SALES_NET"].Line.set_Weight((LineWeightEnum)int.Parse(&#8220;1?));</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of SYS_HEDGEPOSAGG"].Type = ChartChartTypeEnum.chChartTypeLine;<br />
                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of SYS_HEDGEPOSAGG"].Line.Color = &#8220;Black&#8221;;</p>
<p>                //enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of SALES_NET"].Ungroup(true);<br />
                //enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of SYS_HEDGEPOSAGG"].Ungroup(true);<br />
                //enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of SALES_NET"].Group(enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of SYS_HEDGEPOSAGG"]);<br />
                //enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of SYS_HEDGEPOSAGG"].Group(enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of SALES_NET"]);</p>
<p>                //ChAxis Caxix2 = enlargedGraphAxChartSpace.Charts[0].Axes.Add(enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of SYS_HEDGEPOSAGG"].get_Scalings(ChartDimensionsEnum.chDimValues));<br />
                //Caxix2.Position = OWC10.ChartAxisPositionEnum.chAxisPositionRight; </p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of NUKE_MUST"].Border.Color = &#8220;DimGray&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of NUKE_UNDERCONTECO"].Border.Color = &#8220;DimGray&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_OUTRIGHTVW_MUST"].Border.Color = &#8220;Gray&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of VW_UNDERCONTECO"].Border.Color = &#8220;Gray&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_LIGNITE_MUST"].Border.Color = &#8220;Maroon&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of LIGNITE_UNDERCONTECO"].Border.Color = &#8220;Maroon&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_COAL_MUST"].Border.Color = &#8220;Silver&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_COAL_UNDERCONTECO"].Border.Color = &#8220;Silver&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_OUTRIGHTHYDRO_MUST"].Border.Color = &#8220;RoyalBlue&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of HYDRO_UNDERCONTECO"].Border.Color = &#8220;RoyalBlue&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of LIGNITEIN_UNDERCONTECO"].Border.Color = &#8220;Sienna&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_LIGNITEIN_MUST"].Border.Color = &#8220;Sienna&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_GAS_UNDERCONTECO"].Border.Color = &#8220;Gold&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of ECO_GAS_MUST"].Border.Color = &#8220;Gold&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of MAX_UNDERCONTROL"].Border.Color = &#8220;Black&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of MAX_UNDERCONT_WILLI"].Border.Color = &#8220;Lime&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of SALES_NET"].Border.Color = &#8220;Red&#8221;;</p>
<p>                enlargedGraphAxChartSpace.Charts[0].SeriesCollection["Sum of SYS_HEDGEPOSAGG"].Border.Color = &#8220;Black&#8221;;</p>
<p>            }</p>
<p>        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaz</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/28/office-web-components-owc-part-v-spreadsheet-control-as-datasource-to-chart-control/#comment-39978</link>
		<dc:creator>Jaz</dc:creator>
		<pubDate>Mon, 22 Jun 2009 16:03:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1199#comment-39978</guid>
		<description>&lt;p&gt;Hi, cant you give your proyect in zip please, i am new in programming owc. And your example is very good for my problem.&lt;/p&gt;
&lt;p&gt;Thanks a lot&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi, cant you give your proyect in zip please, i am new in programming owc. And your example is very good for my problem.</p>
<p>Thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yosi</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/28/office-web-components-owc-part-v-spreadsheet-control-as-datasource-to-chart-control/#comment-38125</link>
		<dc:creator>Yosi</dc:creator>
		<pubDate>Mon, 23 Feb 2009 18:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1199#comment-38125</guid>
		<description>&lt;p&gt;Greetings Sir&lt;/p&gt;
&lt;p&gt;On my OCW chart I want to display an upper limit line goign across the chart that shows the limit of a certain branch&#039;s capacity. A sort of trendline but not really a trendline but a max line....&lt;/p&gt;
&lt;p&gt;THanks&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Greetings Sir</p>
<p>On my OCW chart I want to display an upper limit line goign across the chart that shows the limit of a certain branch&#8217;s capacity. A sort of trendline but not really a trendline but a max line&#8230;.</p>
<p>THanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enrique</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/28/office-web-components-owc-part-v-spreadsheet-control-as-datasource-to-chart-control/#comment-28907</link>
		<dc:creator>Enrique</dc:creator>
		<pubDate>Sun, 25 Nov 2007 08:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1199#comment-28907</guid>
		<description>&lt;p&gt;Hello, i&#039;m a begginer in OWC programing, i&#039;m making a Visual Basic Application and when i copy and past your code, and   put this numbers in the excel control, it appear an error:&lt;br&gt;
&quot;Error 5  Execution Time..&quot;&lt;br&gt;
And is in this line of the code:&lt;br&gt;
.SetSpreadsheetData stData1, False&lt;/p&gt;
&lt;p&gt;Can you help me and tell me what i&#039;m doing wrong.&lt;/p&gt;
&lt;p&gt;I&#039; know this post is very old(about 2 years) but the info is still here so... Can you help me?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello, i&#8217;m a begginer in OWC programing, i&#8217;m making a Visual Basic Application and when i copy and past your code, and   put this numbers in the excel control, it appear an error:<br />
&#8220;Error 5  Execution Time..&#8221;<br />
And is in this line of the code:<br />
.SetSpreadsheetData stData1, False</p>
<p>Can you help me and tell me what i&#8217;m doing wrong.</p>
<p>I&#8217; know this post is very old(about 2 years) but the info is still here so&#8230; Can you help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas fils</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/28/office-web-components-owc-part-v-spreadsheet-control-as-datasource-to-chart-control/#comment-24205</link>
		<dc:creator>Nicolas fils</dc:creator>
		<pubDate>Sat, 19 May 2007 09:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1199#comment-24205</guid>
		<description>&lt;p&gt;Dennis I am starting coding but I can surely say da you&#039;re well structured in your work. Big up from Germany.&lt;br&gt;
If I may, I&#039;d like to know how to manage a problem that I had with spreadsheet.&lt;br&gt;
Basically, I&#039;ve a userform with a commandButton and a spreasheet on the same spreasheet. And what I&#039;d like to do is to compute the average of any range of values selected by the user on the spreasheet.&lt;br&gt;
I did the task for a predefined range, but I was unable to do it with a range that could be selected by the user in a randomly manner.&lt;br&gt;
Thankx for the assistance.&lt;br&gt;
Nicolas Fils&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dennis I am starting coding but I can surely say da you&#8217;re well structured in your work. Big up from Germany.<br />
If I may, I&#8217;d like to know how to manage a problem that I had with spreadsheet.<br />
Basically, I&#8217;ve a userform with a commandButton and a spreasheet on the same spreasheet. And what I&#8217;d like to do is to compute the average of any range of values selected by the user on the spreasheet.<br />
I did the task for a predefined range, but I was unable to do it with a range that could be selected by the user in a randomly manner.<br />
Thankx for the assistance.<br />
Nicolas Fils</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ozcan</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/28/office-web-components-owc-part-v-spreadsheet-control-as-datasource-to-chart-control/#comment-21186</link>
		<dc:creator>ozcan</dc:creator>
		<pubDate>Fri, 06 Oct 2006 16:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1199#comment-21186</guid>
		<description>&lt;p&gt;Hi everyone,&lt;/p&gt;
&lt;p&gt;I wonder if there is anyway to create an image from html using OWC.&lt;br&gt;
I want to underline &quot;html&quot; as I have seen that it was possible to create image from &quot;text&quot; at :&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://www.motobit.com/util/captcha/aspcaptcha.zip&quot; rel=&quot;nofollow&quot;&gt;http://www.motobit.com/util/captcha/aspcaptcha.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;thanks for any effort.&lt;br&gt;
ozcan&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi everyone,</p>
<p>I wonder if there is anyway to create an image from html using OWC.<br />
I want to underline &#8220;html&#8221; as I have seen that it was possible to create image from &#8220;text&#8221; at :</p>
<p><a href="http://www.motobit.com/util/captcha/aspcaptcha.zip" rel="nofollow">http://www.motobit.com/util/captcha/aspcaptcha.zip</a></p>
<p>thanks for any effort.<br />
ozcan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SteffenJ</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/28/office-web-components-owc-part-v-spreadsheet-control-as-datasource-to-chart-control/#comment-20366</link>
		<dc:creator>SteffenJ</dc:creator>
		<pubDate>Fri, 28 Jul 2006 10:55:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1199#comment-20366</guid>
		<description>&lt;p&gt;Hej Dennis,&lt;br&gt;
Do you have an example where you put an owc-spreadsheet on an ASP.Net-page and programmatically set and get data from cells in either C# or VB.Net?&lt;br&gt;
Tia&lt;br&gt;
SteffenJ&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hej Dennis,<br />
Do you have an example where you put an owc-spreadsheet on an ASP.Net-page and programmatically set and get data from cells in either C# or VB.Net?<br />
Tia<br />
SteffenJ</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/28/office-web-components-owc-part-v-spreadsheet-control-as-datasource-to-chart-control/#comment-17630</link>
		<dc:creator>Vishal</dc:creator>
		<pubDate>Mon, 05 Dec 2005 11:08:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1199#comment-17630</guid>
		<description>&lt;p&gt;Hi Dennis,&lt;/p&gt;
&lt;p&gt;I was really fine to get through OWC&lt;/p&gt;
&lt;p&gt;I would like to know how can i use OWC10 and OWC11 spreadsheet in the same project.&lt;/p&gt;
&lt;p&gt;Example&lt;/p&gt;
&lt;p&gt;I want some of my client to use only OWC10 and other to use OWC11.&lt;/p&gt;
&lt;p&gt;Can u tell me how can i use both the component in my project.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Dennis,</p>
<p>I was really fine to get through OWC</p>
<p>I would like to know how can i use OWC10 and OWC11 spreadsheet in the same project.</p>
<p>Example</p>
<p>I want some of my client to use only OWC10 and other to use OWC11.</p>
<p>Can u tell me how can i use both the component in my project.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ameya</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/28/office-web-components-owc-part-v-spreadsheet-control-as-datasource-to-chart-control/#comment-17438</link>
		<dc:creator>ameya</dc:creator>
		<pubDate>Tue, 08 Nov 2005 15:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1199#comment-17438</guid>
		<description>&lt;p&gt;wanted to one 2 very specific things-&lt;br&gt;
1) how comfortably can i use owc in windows applications / winforms? any runtime exception threats?&lt;br&gt;
2) how can i attach a SQL datasource table columns as category and data value fields? everytime i do this i get an error &quot;Failed to fetch data.&quot; the table has good 10 rows, cant figure out why the error must be popping up, connection string verified.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>wanted to one 2 very specific things-<br />
1) how comfortably can i use owc in windows applications / winforms? any runtime exception threats?<br />
2) how can i attach a SQL datasource table columns as category and data value fields? everytime i do this i get an error &#8220;Failed to fetch data.&#8221; the table has good 10 rows, cant figure out why the error must be popping up, connection string verified.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan Garcia</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/07/28/office-web-components-owc-part-v-spreadsheet-control-as-datasource-to-chart-control/#comment-17427</link>
		<dc:creator>Alan Garcia</dc:creator>
		<pubDate>Mon, 07 Nov 2005 05:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1199#comment-17427</guid>
		<description>&lt;p&gt;Hi Dennis,&lt;br&gt;
I am extremely new to the OWC controls, and have a simple task in front of me. I am looking to populate a spreadsheet object with two columns of data, and a set number of rows and then to graph them. I am to the point where I have the spreadsheet populated, and for that I am grateful. Now, however, I have to graph that small array of data in a simple bar graph. How should I go about doing this?&lt;br&gt;
Thank you for any help you may provide.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Dennis,<br />
I am extremely new to the OWC controls, and have a simple task in front of me. I am looking to populate a spreadsheet object with two columns of data, and a set number of rows and then to graph them. I am to the point where I have the spreadsheet populated, and for that I am grateful. Now, however, I have to graph that small array of data in a simple bar graph. How should I go about doing this?<br />
Thank you for any help you may provide.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

