Skip to Content
avatar image
Former Member

Hyperlink to open in new window on clicking via crystal client

Hi,

How to call hyperlink in new window via crystal client.

I have main report. In that ,for two-three columns, I have made the hyperlink and I want that when user click on that column, it should open in new window.

But I am unable to open the below link in new window.

Hyperlink code :

'http://epint1ent1.jpmorganchase.com/vps/docViewer?invoiceIndexKey='

&columnname

I am using crystal client XI R2.

Please let me know any solution.

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 16, 2009 at 11:30 AM

    Hi,

    I have the same problem, and i tried adding "sWindow=New" at the end of the Hyperlink - and it did not work.

    Does anyone have a solution?

    Add comment
    10|10000 characters needed characters exceeded

    • To enable the "open in a new window" behavior for the .NET Crystal Reports Viewer, set the HyperlinkTarget property of the CrystalReportViewer in .NET to "_blank". Hyperlinks only need to be formatted using the method Format Text > Format Editor > Hyperlink > Hyperlink type: A Website on the Internet. The hyperlinks do not require any special formatting (such as JavaScript). This configuration option is a global change and will affect all hyperlinks in Crystal reports viewed through the .NET Crystal Reports viewer.

  • avatar image
    Former Member
    Jul 09, 2009 at 10:29 AM

    Vishal,

    In your Hyperlink add in the parameter for

    sWindow=New

    i.e. 'http://epint1ent1.jpmorganchase.com/vps/docViewer?sWindow=New∈voiceIndexKey='.....

    You obviously need to complete the Hyperlink fully.

    This should do the trick

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Tim,

      The link Vishal is using is not a typical opendoc link, its actually calling a different application from a crystal report.

      Its like calling a "http://google.com" from a cryctal report in a new window.

      Let us know if there is any solution from within crystal, like an ability to create javascript for newwindow and pass the url to it.

      Thanks,

      Venkat