cancel
Showing results for 
Search instead for 
Did you mean: 

Hyperlinks and custom URIs

Former Member
0 Kudos

In the app I'm currently developing there will be a feature that allows a user viewing a report to click on a hyperlink and this will open a relevant window in the parent application. I'm using the java applet ReportViewerBean in a thick client java app and have added a HyperlinkListener.

I can catch links when they start with common things like: http:// and ftp://, but I would like to use a custom URI start such as foo:// so that I can catch this link and do what I like with it while pdf viewers opening an exported version of the report won't know what to do with the link. I basically want to prevent a pdf viewer from launching an internet browser or other application because the link starts with http://.

I can enter whatever URI I like in CR Developer (I'm using BOXI R2) and the link seems clickable there, it just gives me an error saying Windows has disallowed access to the file (must default to trying to link to a file)

Is there a way I can use a custom URI and have the ReportViewerBean able to catch it?

Cheers,

Elliot.

Accepted Solutions (0)

Answers (1)

Answers (1)

ted_ueda
Employee
Employee
0 Kudos

In the Crystal Report Designer, the hyperlinks are just sent to the OS. So if you enter notepad.exe, it should bring up notepad. A bad URI will error.

Do you see this behavior in the ReportViewerBean as well?

Sincerely,

Ted Ueda

Former Member
0 Kudos

No, any links that have different starts aren't able to be clicked on in ReportViewerBean. I can still have garbage such as "http://garbage that does nothing", but something like "foo://bar" isn't even clickable in RVB, it has an arrow pointer instead of a hand.