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