October 23, 2009 at 9:53 am
I've been trying to use iTextSharp to create a link to a page in another PDF document (see C# example at http://itextsharp.sourceforge.net/tutorial/ch11.html) in an RS report that will be preserved when the report is exported to PDF. A programmer in our shop wrote a C# program to generate the entire PDF report with the links we want, but for obvious reasons, we'd prefer use RS to generate the report, and reference the itextsharp dll to embed the links.
I have been able to get the Chunk method to work on its own (Fields!PageNo.Value is an integer);
=new iTextSharp.text.Chunk(CStr(Fields!PageNo.Value)).ToString()
but I cannot figure out how to add in SetRemoteGoTo to make the page# a link. I tried this expression;
=new iTextSharp.text.Chunk(CStr(Fields!PageNo.Value)).SetRemoteGoto(CStr(Fields!pdfFile.Value), Int(Fields!PageNo.Value))
which produces this error;
[rsInvalidExpressionDataType] The Value expression used in textbox ‘tbLinkVal’ returned a data type that is not valid.
Am I trying to do something that is just not possible?
thank you for any help, beth
Viewing post 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy