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
Mohammad Aman
Tech Writer
327
72.2k
iTextSharp text html simpleparser HTML is absolete not worki
Mar 1 2016 3:21 AM
<pre lang="C#"><pre lang="C#">I am using itexhsharp to generate , On local server it is working but giving me warning iTextSharp.text.html.simpleparser.HTMLWorker is absolote and On the server it is not working and not generating pdf file any one can give me solutions for this error</pre></pre>
My code is here :
Response.ContentType = "application/pdf"
Response.AddHeader("content-disposition", "attachment;filename=Vasundhara" + Date.Today + ".pdf")
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Dim sw As New StringWriter()
Dim hw As New HtmlTextWriter(sw)
repeaterName.RenderControl(hw)
Dim sr As New StringReader(sw.ToString())
Dim pdfDoc As New Document(PageSize.A4, 50.0F, 50.0F, 40.0F, bottom)
Dim htmlparser As New HTMLWorker(pdfDoc)
PdfWriter.GetInstance(pdfDoc, Response.OutputStream)
pdfDoc.Open()
Try
htmlparser.Parse(sr)
Catch ex As Exception
Finally
pdfDoc.Close()
End Try
'htmlparser.Parse(sr)
'pdfDoc.Close()
Response.Write(pdfDoc)
Response.End()
Reply
Answers (
3
)
How to implement security in web api
Tree view in asp.net