cancel
Showing results for 
Search instead for 
Did you mean: 

Custom hyperlinks do not work in CrystalReportViewer (2008)

Former Member
0 Kudos

Hi,

if I use a link within a report like "http://test.com" it can be opened when displaying the report using the CrystalReportViewer control. The link location is also visible in the ClickPage event.

However, if I use a "custom" protocol like "myprotocol://myaction" the link is neither clickable nor visible in the ClickPage event. There is just a blank string. Is there any way to get these links working?

Best regards,

Florian

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

The best way to approach these issues, is to consider if such functionality or feature is available in the CR designer it's self.

E.g.; the functionality is limited to the types specified in the hyperlink radio buttons of the "Format Field" dialog - "Hyperlink" tab:

These include;

http://

file://

mailto://

Other report objects (using data context)

Website field values (ie the field value is an http hyperlink)

Or.. No hyperlink

Unfortunately there is no "Custom URI" radio button, thus I suspect this will not work in the designer and by extension this will not work at runtime.

Ludek

Former Member
0 Kudos

The custom links work actually fine within the designer. The custom links also worked fine in older versions of the ReportViewer control (for example, old C++ version). So "not being supported at design time" can't be the reason. To me, it looks like a runtime problem.

former_member183750
Active Contributor
0 Kudos

Can you provide steps on how you get the custom link to work in the designer?

Also, when you say this used to work in C++, do you mean using the RDC (craxdrt.dll)?

And, specify development language used now; .NET? What version?

Ludek

Edited by: Ludek Uher on Jun 4, 2009 6:17 AM

Former Member
0 Kudos

Here is a short movie, which shows where the link is entered in the designer and the fact that you can actually click the link.

http://www.winworker.de/download/cr-hyperlinks.rar

Previously, we had craxdrt.dll (version 8.5.0.493).

Now (when we got the problem), we are on .NET 2.0 / C# (Crystal Reports 12.0.1100.683). There is no difference whether or not we use SP1 for the runtimes.

Former Member
0 Kudos

Do you need any further information in order to help us with our issue?

former_member183750
Active Contributor
0 Kudos

This one took a bit of looking into.

In web apps, the ability to script custom URIs was disabled because of the ability to inject malicious scripts. We did this in XI.

The release notes for XI (http://help.sap.com/businessobject/product_guides/boexi/en/boxi_releasenotes_en.pdf ; page 60) shows how to enable this:

u201CAny Crystal Reports hyperlink that contains a URI other than u201Chttp:u201D, u201Chttps:u201D, u201Cmailto:u201D, u201Cftp:u201D, or u201Cnews:u201D is removed by Crystal Reports. This is done so that malicious scripts cannot be added to a hyperlink. If you want to override this feature and allow scripts to be run through hyperlinks, you can create this registry subkey:

\HKEY_LOCAL_MACHINE\Software\Business Objects\Suite 11.0\Crystal Reports\FormatOptions

Then, make this entry as a new String Value:

DisableScriptsInHyperlinks

Finally, set its value to u201CYesu201D or u201CNou201D.u201D

Reset IIS and try again with the value using the correct 12.0 registry path set to u201CNou201D. For CR 12.0 the reg path is:

HKLM\software\business objects\suite 12.0\crystal reports\

You may have to create the formatoptions folder and add DisableScriptsInHyperlinks with the correct value set.

Ludek

Edited by: Ludek Uher on Jun 8, 2009 12:10 PM

Former Member
0 Kudos

Thanks a lot, this registry key works fine.

Answers (1)

Answers (1)

Former Member
0 Kudos

I have the same problem, i want to add a javascript-command to a report-field which should appear in a DHTML-Viewer (Java).

I tried the registry-key, but it didn´t work.

I am using CR XI R1. My environment exists of Windows Server 2003, Apache Tomcat 6.0 and the Java-DHTML-Viewer.

I tried the registry key for 11.0 and 11.5.

Is there a special parameter for the web.xml (so the registry value doesn´t work for java-environment)?