1

iTextSharp を使用して、1 つの html ページを pdf にエクスポートしたいと考えています。2 つのテーブルがあり、最初のテーブルには境界線を配置したいが、別のテーブルには境界線を配置したくない

//my first tabe
strHTMLContent.Append("<table width='100%'>");
strHTMLContent.Append("<tr>");
strHTMLContent.Append("<td>" text "</td>");
strHTMLContent.Append("<td>" text "</td>");
strHTMLContent.Append("<td>");

//the 2nd table that I don't want to have border
strHTMLContent.Append("<table>");
strHTMLContent.Append("<tr><td>" row1 " </td></tr> ");
strHTMLContent.Append("<tr><td> " row2" </td></tr> ");
strHTMLContent.Append("<tr><td>  " row3 " </td></tr> ");
strHTMLContent.Append("</table >");
strHTMLContent.Append("</td>");
strHTMLContent.Append("</tr>");
strHTMLContent.Append("</table >");

//I use StyleSheet for set border size
var st = new StyleSheet();
st.LoadTagStyle("table", "border", "1");
4

1 に答える 1