Hi,
is ist possible to use a formula as ChartTitle in XlsIO, so that the text of the chart title ist set dynamically, when entered in a cell of the worksheet.
In Excel itself and by using the interop in C# it is possible.
For example in Excel interop:
Chart1.ChartTitle.Formula = "='Sheet1'!$A$2";
So the title of Chart1 is set to a formula which refers to cell A2 in Sheet1.
This works fine an the chart title shows the text in cell A2.
But how can I do this in XlsIO?
I only found the property ChartTitle in the IChartShape interface or the Text property in the ChartTitleArea, but both dont work, when set to a formula.
The title only shows the text, because it is a string value.
What I found out is, that if I open a workbook created with the interop in XlsIO an have a look at the chart, I can find a non public property called "IsFormula" in the ChartTitleArea I think. This property ist set true, if the chart title is a formula.
But because it is a non public property I could not set it, when I use XlsIO to set the title.
Any help appreciated
Best regards
Christian