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.
 

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