TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
anuruddha pandey
NA
22
8.8k
html editor using mshtml
May 3 2015 8:00 AM
how to split cell using mshtml c# window application
mshtmlTable table1 = null;
mshtmlTableRow row1 = null;
mshtmlTableCell cell1 = null;
GetTableElement(out table1, out row1, out cell1);
HtmlElement table = getTableHTMLElement();
if (table != null)
{ int index = row1.rowIndex;
int numberCols = row1.cells.length;
HtmlElement selectedCell = table.GetElementsByTagName("tr")[row1.rowIndex].GetElementsByTagName("td")[cell1.cellIndex];
HtmlElement nextcell = null;
//if (cell1.cellIndex < table.GetElementsByTagName("tr")[row1.rowIndex].GetElementsByTagName("td").Count + 1)
//{
foreach (mshtml.HTMLTableRow elementRow in table1.rows)
{
foreach (mshtml.HTMLTableCell elementCell in elementRow.cells)
{
nextcell = (HtmlElement)row1.insertCell(cell1.cellIndex+1);
//mshtml.IHTMLElement c = (mshtml.IHTMLElement)row1.insertCell(cell1.cellIndex + 1);
// c.innerHTML = " ";
}
selectedCell.OuterHtml = nextcell.OuterHtml + selectedCell.OuterHtml;
}
Reply
Answers (
3
)
html editor using mshtml
LayoutMdi in None border Forms ...