IText in Asp.net MVC
I want to use iText to write data to pdf.
Collected, which I added,
- iTextdotNET.dll
- Gnu.Classpath.Core.dll
But the problem I am facing is
- Error 1 The type "java.io.OutputStream" is defined in an assembly that is not referenced. You should add assembly reference 'vjslib, Version = 1.0.5000.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a'.
- Error 2 The type "java.io.Serializable" is defined in an assembly that is not referenced. You should add assembly reference 'vjslib, Version = 1.0.5000.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a'.
I got it: this requires j #.
Now what to do?
+1
a source to share
5 answers
There are (at least) two .NET ports for iText. It looks like you have iText.NET . Grab the latest version of iTextSharp and your dependency worries should be done.
+2
a source to share
I would suggest using iTextSharp rather than iText.Net. iText.Net hasn't been updated for quite a while, while ITextSharp is relatively modern and works seamlessly with newer versions of the .NET Framework.
+1
a source to share