I'm not sure what you mean by this? The various iTextSharp objects have specific datatypes in their constructros and methods. If you wanted to pass a string variable to a new Chunk, you could do:
string mystring = "This is a test string.";
Chunk c = new Chunk(mystring);
Can you be more specific in what you are having trouble with?
Don't forget to mark useful responses as Answer if they helped you towards a solution.
RSquared
Member
277 Points
395 Posts
iTextSharp
Mar 12, 2012 02:46 PM|LINK
I was wondering how would I send a variable to an iTextSharp Object. Thanks !!!!
kedarrkulkar...
All-Star
34423 Points
5535 Posts
Re: iTextSharp
Mar 12, 2012 02:59 PM|LINK
what you want achive exactly?
read my complete article on creating pdf using iTextSharp here
http://www.bluelemoncode.com/post/2011/12/05/Using-iTextSharp-to-generate-pdf-file-in-aspnet.aspx
hope this helps...
KK
Please mark as Answer if post helps in resolving your issue
My Site
markfitzme
Star
14433 Points
2227 Posts
Re: iTextSharp
Mar 12, 2012 03:07 PM|LINK
I'm not sure what you mean by this? The various iTextSharp objects have specific datatypes in their constructros and methods. If you wanted to pass a string variable to a new Chunk, you could do:
string mystring = "This is a test string.";
Chunk c = new Chunk(mystring);
Can you be more specific in what you are having trouble with?
RSquared
Member
277 Points
395 Posts
Re: iTextSharp
Mar 12, 2012 03:21 PM|LINK
I just would like to use the values that the user entered into text boxes on one page over into the report. I hope that is clearer. Thanks !