on 06-03-2009 11:46 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.