I've tried to send it to steve pptools dot com, but my smtp won't send it as
the address is wrong. Thanks
The address is deliberately obfuscated to prevent spam.
substitute @ for at-sign and . for dot and remove the spaces.
:
I’ve send it again.
Still no luck. You're sending it to steve at-sign pptools dot com (making the obvious
conversion to an email address) and not just hitting reply by email, right?
:
I’ve sent you the PP presentation, did you get it? Thanks.
Not that I can see (and it hasn't fallen into the bin with the investment opportunities,
pharmaco-anatomical improbabilities and Department of Phisheries either.)
Give it another ry if you would ... thanks.
:
Any chance you could email me an example chart that exhibits this behavior?
Dummy data's fine, of course.
steve at-sign pptools dot com
:
Hi,
I'm building a PP presentation in C#,
working with "VS2003" and "PowerPoint 11 Object Library".
When I double click a chart in a slide in the built presentation,
The DataSheet start at the third row,
and it is not possible to see the first and second rows in the data sheet.
Without seeing your code it's hard to say what the problem is.
I’m aware of the 1-based array, and I’ve being
working with PP automation
for a long time.
The code is basically –
oChart.Application.DataSheet.Cells["0" + Convert.ToString(optionCounter +
2), CCReportsGlobals.ABC[abcCounter]] = freqValidPercentageStr;
and at the end of all the data insertion –
oChart.Application.Update();
The problem is that when double clicking the chart slide,
in the done presentation, the DataSheet start at a row numbered
“3â€ÂÂÂÂÂ(instead
of number 1).
It looks like this:
A B C
colHeaderA colHeaderB colHeaderC
3 rowHeader3 valueA3
4 rowHeader4 valueA4
As you can see rows that have the numbers 1 and 2 (and I know these rows are
at location of rows 3 and 4 in the datasheet)
are not accessible through the DataSheet,
but these rows are shown in the chart object as bars.
Just to make thing clearer the DataSheet should looks like this according to
what is shown in the chart object –
A B C
colHeaderA colHeaderB colHeaderC
1 rowHeader1 valueA1
2 rowHeader2 valueA2
3 rowHeader3 valueA3
4 rowHeader4 valueA4
Why are rows numbered “1†and
“2†not accessible?
But keep in mind that the first row and column in the data sheet are reserved for
column/row names, not data. And while I don't remember offhand, I *think* that
the
datasheet is effectivly a 1-based not 0-based array.
In other words:
Cell(1,1) is the cell at top left that's always blank
Cell(1,2) is the first column title
cell(2,2) is the first cell that actually contains data
Another problem is that when I have negative values in the data sheet,
Sometimes the order of the rows in the datasheet that display in the chart
are
Mixed (an row named
“excellent†appears beneath a
row
named ÃÆ’¢â‚¬Å“very goodÃÆ’¢â‚¬ÂÂÂÂÂÂ).
The rows don't sort themselves; your code would have to sort them in the order you
want before putting the data into the cells of the data sheet.
I checked the code in Debug mode and the insertion of the data to the chart
is in the right order,
but the chart displays them in the wrong order.
If I had access to the first 2 rows in the datasheet then it would look like
this –
A B C
colHeaderA colHeaderB colHeaderC
1 rowHeader2 valueA2
2 rowHeader1 valueA1
3 rowHeader3 valueA3
4 rowHeader4 valueA4
But because of the problem of inaccessibility to the first two rows,
I can only see this:
A B C
colHeaderA colHeaderB colHeaderC
3 rowHeader3 valueA3
4 rowHeader4 valueA4
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:
www.pptfaq.com
PPTools:
www.pptools.com
================================================
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:
www.pptfaq.com
PPTools:
www.pptools.com
================================================
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:
www.pptfaq.com
PPTools:
www.pptools.com
================================================
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:
www.pptfaq.com
PPTools:
www.pptools.com
================================================
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:
www.pptfaq.com
PPTools:
www.pptools.com
================================================