[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Can you programatically change the border style of cells in  PowerPoint 2003 tables

Asked by rteller00 in Active Server Pages (ASP), Microsoft Powerpoint Presentation Software

Tags: Microsoft PowerPoint Tables BorderStyle

I'm working in Delphi (5) automating PowerPoint.  The type library for PowerPoint 2003 exposes Borders from which you can select one using the item property and set its Visible or Weight property.  However although the Style property is exposed (of type msoLineStyle) I get a OLE Error 800A01A8 on accessing it.

So the lines
    FShape.Table.Cell(nRow, nCol).Borders.Item(nBorder).Visible := TOleEnum(msoTrue);
    FShape.Table.Cell(nRow, nCol).Borders.Item(nBorder).Weight  := nWeight;
work fine and
    FShape.Table.Cell(nRow, nCol).Borders.Item(nBorder).Style   := TOleEnum(msoLineSingle);
gives the error (irrespective of which of the msoLineStyle constants I use).

Recording a macro in PowerPoint and changing the border style gives an empty macro!!

Be grateful for any ideas (or confirmation that it's not possible)

Thanks

Richard Teller
[+][-]11/03/09 03:56 AM, ID: 25728018Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/03/09 04:31 AM, ID: 25728248Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/03/09 05:11 AM, ID: 25728538Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/03/09 05:17 AM, ID: 25728582Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625