You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the SDK 2.5/.NET 4.0 set. Consider the following HTML table:
<trclass="TableHeaderCells"><thstyle="background-color:#FFFF99;" colspan="4"></th><thstyle="background-color:#FFFF99;" colspan="7"></th><thstyle="background-color:#FFFF99;" colspan="5">[Header Text]</th></tr><trclass="TableHeaderCells"><thstyle="background-color:#FFFF99;" colspan="4"></th><thstyle="background-color:#FFFF99;" colspan="3">[More Header Text]</th><thstyle="background-color:#FFFF99;" colspan="4">[Even More Header Text]</th><thstyle="background-color:#FFFF99;" colspan="3">[Still Even More Header Text]</th><thstyle="background-color:#FFFF99;" colspan="2">[So Much Header Text]</th></tr>
When I use HTMLtoOpenXML to convert this table, I lose the "background-color" style and I haven't been able to pinpoint why yet. I think it might be here in
TableStyleCollection.ProcessCommonAttributes:varcolorValue= en.StyleAttributes.GetAsColor("background-color");// "background-color" is also handled by RunStyleCollection which duplicate this attribute (bug #13212). Let's ignore itif(!colorValue.IsEmpty && en.CurrentTag.Equals("<td>", StringComparison.InvariantCultureIgnoreCase))colorValue= System.Drawing.Color.Empty;
Has anybody else seen this happen to them? If so, how did you address the issue?
The text was updated successfully, but these errors were encountered:
[copied from codeplex]
I am using the SDK 2.5/.NET 4.0 set. Consider the following HTML table:
When I use HTMLtoOpenXML to convert this table, I lose the "background-color" style and I haven't been able to pinpoint why yet. I think it might be here in
Has anybody else seen this happen to them? If so, how did you address the issue?
The text was updated successfully, but these errors were encountered: