Jump to content
Changes to the Jaspersoft community edition download ×

Hyperlink to another PDF problem, pls help


2005 IR Help

Recommended Posts

By: jane_lim - jane_lim

Hyperlink to another PDF problem, pls help

2005-10-21 03:03

Hi,

 

i have a pdf file in package

com/company/file/abc.pdf

 

i create a report call report.pdf

in this report.pdf, i have a hyperlink to link to abc.pdf

Hyperlink target:Self

Hyperlink type: RemoteAnchor

HyperlinkReferenceExpression : $P{PDF_FILE}

HyperlinkAnchorExpression: "title"

 

for parameter, PDF_FILE

class type: java.net.URL

 

in my application, i deploy the pdf file in a jar

URL path = getClass().getResource("/com/company/file/abc.pdf");

parameters.put("PDF_FILE", path);

 

 

it hit cannot cast java.net.URL to String

 

i want to ask, why HyperlinkReferenceExpression

must is String?? can it be java.net.URL??

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...