-1
Dim HTMLstr as String
在這個變量我寫純HTML代碼然後在asp.net的標籤顯示它asp.NET - 保存HTML字符串到PDF
HTMLstr = "<table width=""auto;""> "
HTMLstr &= "<tr style=""color:white ; background: #336699; font-style:bold;"">"
HTMLstr &= "<th width=""257px;"" height=""40"" >Service Name</th>"
HTMLstr &= "<th width=""100px;"" height=""40"">Hits </th>"
HTMLstr &= "<th width=""100px;"" height=""40"">Revenue</th>"
HTMLstr &= "<th width=""100px;"" height=""40"">Service Cost</th>"
HTMLstr &= "</tr></table>"
Label_Html.Text = HTMLStr
我想將整個HTML字符串導出爲PDF
要做到這一點,最簡單的方法是什麼?
最簡單的方法?只需在Chrome上打印並保存爲pdf –
@dholakiyaankit在所有瀏覽器上都可以使用的東西? – HelpASisterOut
用戶Itextsharp開源庫 –