Hello everyone I’m a beginner in MVC3 so I’m trying to use pdf reporting with itextsharp but I’m confused to how to use it. Could you suggest me to how use itext sharp in MVC3 tutorial or example?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’d have a look into iTextSharp examples in general, with a slant towards creating one in memory and saving it into a
Streamrather than a file. Then look into using an MVC action method return an file stream action result using something like the snippet below at the end of your action method:Where
pdfStreamwould be the stream generated by your iTextSharp PDF document andPdfFileName.pdfis the name you want the PDF to be opened/saved as.