I was searching perfect snippet for my project but i was failed to found ,
i want to dynamically generated html report (transactional report ) on whole page,but i was facing problem
using itextsharp DLL having different problem like
"document has no pages "
"illegal character found.."
i was test more than dozen of code but after too effort , i found a way to render whole page or particular
div render or save as pdf..
NOTE : if you have found this error like
Unable to cast object of type 'iTextSharp.text.html.simpleparser.IncCell' to type 'iTextSharp.text.html.simpleparser.IncTable'
this is because you have binding issue make sure before simple is properly binding, extra single code in pdf div area found are cause of error.