c# 4.0 - Aspose Slides Table Cell Insert HTML content -


I'm working with Aspose to generate PPT in my application, I have a position where I need to insert In the section HTML text in the table, I have verified all the blogs, no one has given me the answer. If any body knows here, please tell me thank you in advance.

After

You can use the paragraph of the TextFrame paragraph associated with each cell to insert the HTML aspose For the .Slides .NET, check the following code:

  // represents the PPTX file using the presentation class (Presentation Pres = New Presentation ()) {// Access First slide islide sld = pres.Slides [0]; Define columns with width and rows with width [double] dblCols = {250, 250}; Double [] dblRows = {150, 130, 130}; // Add table size to slide iTable tbl = sld.Shapes.AddTable (100, 50, dblCols, dblRows); // Set the range format for each cell foreach (tl.Rows in the IRow line) foreach (the line in the ICell cell) {cell.BorderTop.FillFormat.FillType = FillType.Solid; Cell.BorderTop.FillFormat.SolidFillColor.Color = Color.Red; Cell. BorderTop.Width = 5; Cell. Borderbottom.philformat.phillippe = FillType.Solid; Cell.BorderBottom.FillFormat.SolidFillColor.Color = Color.Red; Cell. Borderboatm With = 5; Cell. Board lift.filfarmat.filtype = FillType.Solid; Cell. BorderFoto.philformate Solidifol Collar Color = color Cell.BorderLeft.Width = 5; Cell. Borderwright Filiformat Fillip = FillType.Solid; Cell. Borderwright.philformate Solidifol Collar Color = color Cell. Borderwright With = 5; } // text frames adding HTML text to tbl [0, 0] .extFrame.Paragraphs.AddFromHtml (from "    

P.S. I am working as a social media developer on Aspose.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -