Hi,
I creating a modern page with a table from an exported HTML file using AddClientSidePage and ClientSideText. The page is created with content in HTML file but the table is not showing with all the columns. Also, there is no horizontal scroll bar to move right. When I edit the page, I can able to move those missing columns by moving the cursor to the right side using the right arrow.
Note: The table contains few images and those images are uploaded on the SharePoint site.
Here is the C# code to create the page with the Html content.
var page = clientContext.Web.AddClientSidePage(pageName + ".aspx", true);
page.AddSection(CanvasSectionTemplate.OneColumn, 0);
page.Save();
CanvasSection section = page.Sections[0];
ClientSideText pageConent = new ClientSideText() { Text = htmlContent };
page.AddControl(pageConent, section.Columns[0], 0);
page.Save();
page.Publish();
Thanks,
Kannan