Setting PP chart back color as transparent using c#

S

Sonic

Hi,

I’m working with C# in VS 2003 and using Office object library 11.
I need to set programmatically the background of a chart in PP to be
transparent,
meaning the chart will have the same color as the slide back color.
How do I do that?

I tried -
oChart.PlotArea.Interior.ColorIndex =
Microsoft.Office.Interop.Graph.XlColorIndex.xlColorIndexNone
but it doesn’t work.

I also tried -
oChart.PlotArea.Interior.Color = ppSlide.Background.Fill.BackColor.RGB;
but it fails as well.
 
S

Sonic

OK, I’ll try to me more informative.
I recorded a Macro in PP, that does:

Format Chart Area -> at “Patterns†tab, at “Area†group box, changes the
radio button from “Automatic†to “Noneâ€

And this is the Macro I get:

Sub Macro1221()
'
' Macro recorded 05 04 07
'
ActiveWindow.Selection.SlideRange.Shapes("Object 4").Select
ActiveWindow.Selection.ShapeRange.OLEFormat.DoVerb Index:=1
End Sub

As I see it, it has nothing to do with the “Format Chart Areaâ€.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top