Jul 07, 2008 07:17 PM|Mikesdotnetting|LINK
You certainly need to install some PDF component or another. Put the dll in the bin folder and have a look at these tutorials:
All-Star
22406 Points
Jul 07, 2008 07:18 PM|gunteman|LINK
Well, iTextSharp is free and cool, but there are certainly better commercial alternatives.
But if it's enough for you, have a look at:
Jul 07, 2008 07:45 PM|Mikesdotnetting|LINK
In your code-behind, try just adding:
using iTextSharp.text;
using iTextSharp.text.pdf;
Jul 08, 2008 12:34 PM|pinky8|LINK
Mikesdotnetting
In your code-behind, try just adding:
using iTextSharp.text;
using iTextSharp.text.pdf;
I had that and they had error because I couldn't add a reference to iTextSharp. I found a way to add the reference by selecting the iTextSharp.dll from my hard drive instead of from .Net and that works.
When I use:
Table a = new Table();
I get compilation error about 'Table' is an ambiguous reference between 'System.Web.UI.WebControls.Table' and 'iTextSharp.text.Table'.
Jul 08, 2008 04:06 PM|Mikesdotnetting|LINK
Change it so there is no ambiguity:
Table a = new iTextSharp.Text.Table();
or whichever one you want it to be. Or, if you are not using any WebControls on the page, remove the "using System.Web.UI.WebControls;" statement from the page.
7 replies
Last post Jul 08, 2008 06:42 PM by pinky8