i am able to create table in powerpoint slide,but unable to apply border.
-
2008年11月11日 6:31
objSlide = objSlides.Add(1, PowerPoint.
PpSlideLayout.ppLayoutBlank);Microsoft.Office.Interop.PowerPoint.
Shape txt = (Microsoft.Office.Interop.PowerPoint.Shape)objSlide.Shapes.AddTextEffect(MsoPresetTextEffect.msoTextEffect1, "Org delivery scorecard", "Arial", 10, MsoTriState.msoFalse, MsoTriState.msoFalse, 200, 10);txt.TextFrame.TextRange.Font.Color.RGB = 0;
txt.TextFrame.TextRange.Font.Size = 15;
txt.TextFrame.TextRange.Font.Underline =
MsoTriState.msoTrue;Microsoft.Office.Interop.PowerPoint.
Shape table = (Microsoft.Office.Interop.PowerPoint.Shape)objSlide.Shapes.AddTable(11, 3, 50, 60, 400, 150);table.Visible =
MsoTriState.msoFalse; //objPres.Slides //ltwhtable.Table.Cell(1, 1).Shape.TextFrame.TextRange.Text =
"Item";table.Table.Cell(1, 1).Shape.TextFrame.TextRange.Font.Size = 10;
//table.Table.Cell(1, 1).Shape.Fill.ForeColor.RGB = System.Drawing.Color.White.ToArgb();table.Table.Cell(1, 2).Shape.TextFrame.TextRange.Text =
"Target";table.Table.Cell(1, 2).Shape.TextFrame.TextRange.Font.Size = 10;
//table.Table.Cell(1, 2).Shape.Fill.ForeColor.RGB = System.Drawing.Color.White.ToArgb();table.Table.Cell(1, 3).Shape.TextFrame.TextRange.Text =
"Org";table.Table.Cell(1, 3).Shape.TextFrame.TextRange.Font.Size = 10;
//table.Table.Cell(1, 3).Shape.Fill.ForeColor.RGB = System.Drawing.Color.White.ToArgb();- 已移动 danishani 2012年1月27日 19:59 VB Interop instead of VBA (From:Visual Basic for Applications (VBA))
全部回复
-
2012年1月19日 8:32
same problem with me
can someone help?
Regards,
Akash

