i am able to create table in powerpoint slide,but unable to apply border.

已鎖定 i am able to create table in powerpoint slide,but unable to apply border.

  • יום שלישי 11 נובמבר 2008 06: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

    //ltwh

     

    table.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 יום שישי 27 ינואר 2012 19:59 VB Interop instead of VBA (From:Visual Basic for Applications (VBA))
    •  

כל התגובות

  • יום חמישי 19 ינואר 2012 08:32
     
     

    same problem with me

    can someone help?

    Regards,

    Akash