PowerPoint 2003 Borders Exception

B

Bill Buchanan

I'm having some difficulty automating a task in PowerPoint 2003. I'm pretty
having the exact same issue this gentleman is having in the article here:
http://www.codeproject.com/KB/office/PowerPointCreator.aspx

However, he has the option of forcing all of his customers to PowerPoint
2007. I do not have this luxury. And FWIW, the code behaves fine in PP2007.

Specifically, whenever I try to access the Borders collection. Sample code
that throws the exception:

// Copy the source cell's style to the destination cell.
destCell.Borders[PpBorderType.ppBorderLeft].ForeColor =
sourceCell.Borders[PpBorderType.ppBorderLeft].ForeColor; // boom!

Has anyone discovered a work around here?

Thank you.
 
Top