Reputation: 1
I have a C# proyect where I need to create a pdf document. I did it using the iTextSharp dll but when I ran it on the server it didn't work. It seems that the dll needs higher permissions than the one I have on my shared server.
Is there any other free way to do this? I'm trying to create the pdf from a grid I have, I don't care how I create the document (from html, code behind, etc) as long as it works.
does anybody know how to do this?
regards!
Upvotes: 0
Views: 458
Reputation: 9181
iTextSharp is just an assembly the contains an API for generating PDF's. It does not require any more privileges than your ASP.NET application.
Are you by chance trying to write the PDF to disk? Your ASP.NET process may not have write access to the location you are writing to.
I would suggest a better way is to output the PDF directly to the Response stream, assuming you are returning the PDF to the web user.
Upvotes: 3