asp.net - Error in converting aspx page to html (itextsharp 5.0.6) -
I convert this aspx page into pdf by using this code itextsharp 5.0.6: < pre> However, I'm having an error on this line while setting the object reference to an object in an example: <> If I changed the HTML variable HTML1 in this line of code , It's working fine. Any ideas how I can correct this error Am I Private function RenderControlToString (as control control) String Dims as New StringBuilder () Dim Sw New StringWriter (sb) Mod Authorized New HtmlTextWriter (SW) Control Form As in: Here is the task. RenderControl (Author) Return sb.ToString () End Function Thank you for your help. (moved to answer comment) for iTextSharp use MS = new memorystream () HTML as dim HTML string = VBCR & amp; VbLf & amp; "& Lt; h1 & gt; h1 & lt; / h1 & gt;" & Amp; VbCr & amp; VbLf & amp; "& Lt; p class =" "bo" "& gt; one paragraph & Amp; VbCr & amp; VbLf & amp; "& Lt; ul & gt;" & Amp; VbCr & amp; VbLf & amp; "
Dim list list (IElement) = HTMLWorker.ParseToList (formerly as sReader, style)
Using sReader as TextReader = New StringReader (Html1.ToString ())
with HTMLWorker is known in
& lt problems; Hour & gt; tag Short-term solutions are just to delete those tags but for long term solution
XMLWorker which supports those tags and actively develops and
Comments
Post a Comment