Hyperlink on exported PDF to open in new window RRS feed

  • Question

  • User1013750657 posted


    I have created a simple report and added a field with


    the intention is to force google to open on a new tab or browser window.

    after i export the report to PDF , the behavior of the links  is inconsistent , well actually is unpredictable , some times it opens on a new tab/window, some times it opens on the same , some times it just pops the download window prompting to save/cancel as if it was a file.

    Please note if i just add to the field http://www.google.com it works well ( except that it does not open on new window/tab witch is what i want )

    Any ideias


    thanks in advanced



    Monday, March 4, 2013 7:24 AM

All replies

  • User281315223 posted

    Have you tried included the "target" parameter within your window.open() function, which should help add some consistancy with how your window is opened :


    The '_blank' target will open your URL within a new window (or new tab based on your browsers preferences).

    Monday, March 4, 2013 7:50 AM
  • User1013750657 posted

    it´s the same behavior.

    i should propably add this, when it tries to download, the name of the file is "www_google_com'))" just like that without the double quotes

    Monday, March 4, 2013 8:31 AM
  • User281315223 posted

    If you want to guarantee that it opens in a new window (as opposed to a tab) you can usually explicitly define the height and width of your new window : 

    <!-- Opens in New Tab -->
    <input type='button' value='New Tab' onclick='window.open("http://www.google.com","_blank");' />
    <!-- Opens in New Window -->
    <input type='button' value='New Window' onclick='window.open("http://www.google.com","_blank","height=600,width=400");' />


    So try giving this a shot : 

    <!-- Use single or double quotes as appropriate (depending on your surrounding context to avoid conflict) -->

    Monday, March 4, 2013 8:46 AM
  • User1013750657 posted

    the same :(

    Thursday, March 7, 2013 8:25 AM
  • User281315223 posted

    Could you post some additional code related to this issue? Are these links occuring within the actual PDF itself (or Report) or on your web page?

    Thursday, March 7, 2013 8:28 AM
  • User1013750657 posted

    Hi , sorry for the late response

    there is no actual code, i create a report, do a query and populate some field on the report with a link (http://www.google.com).

    when i change to any of the sugestions like ="javascript:void(window.open('http://www.google.com','_blank'))"

    it starts to behave ver strange.

    Probably is should add, that the report is very complex, not sure if influences it, but it as 5 parameters, 10 querys, lots of subreports.....

    when i create a simple report , inicialy the ="javascript:void(window.open('http://www.google.com','_blank'))" works fine ....when i intruduce that to my complex report and try it .....both the reports start to have a strange behavior.

    same times it opens, some times it doesnt , some times it asks for download the page, most times crashes IE.

    Friday, March 15, 2013 4:35 AM