This is a migrated thread and some comments may be shown as answers.

NavigateToUrlAction.Target not working

3 Answers 169 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jack
Top achievements
Rank 1
Jack asked on 05 Mar 2020, 01:07 AM

Hello,

We currently have a picture box on our PDF report that we want to open in a new tab / window on click but it is not working.

The designer file looks like this

            // 
            // pictureBox1
            // 
            navigateToUrlAction1.Url = "= MapLocation(Fields.UniqueId)"; // This calls and returns a url and is working fine
            navigateToUrlAction1.Target = Telerik.Reporting.UrlTarget.NewWindow; // Added this manually just in case, when using the designer and choosing New window under Link target it does not add this line, I assume its default behavior?
            this.pictureBox1.Action = navigateToUrlAction1;

 

We have tried to set the url to just http://google.com but same results.

3 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 09 Mar 2020, 11:42 AM

Hello Jack,

I tested locally with our last version 14.0 20.219 and the NavigateToUrl Action works as expected - check the attached report and the generated PDF document within the archive.

Can you send us a runnable application or report that demonstrates the problem so that we can test locally?

Regards,
Todor
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jack
Top achievements
Rank 1
answered on 12 Mar 2020, 12:16 AM

Hello Todar,

After trying out your sample report, I realized this issue may be related to browsers instead.

To reproduce, open the sample PDF in Chrome / Firefox / Edge and click on the textbox and it will NOT open a new tab/window.

The PDF will only open a new tab when viewed in separate program like Adobe reader.

We wanted the user to stay on the PDF while opening these links on PC/Mobile, is there any way to do that?

 

Thanks,

Jack

0
Accepted
Todor
Telerik team
answered on 16 Mar 2020, 03:35 PM

Hello Jack,

Where the link will open is controlled by the PDF Viewer. In this case, indeed the browser controls the link opening. Unfortunately, there is no report option to set the link to be opened in another browser tab.

You need to press 'Ctrl' and then follow the link as this will open it in a new browser tab. With 'Shift' you may open it in a new window.

Regards,
Todor
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Jack
Top achievements
Rank 1
Answers by
Todor
Telerik team
Jack
Top achievements
Rank 1
Share this question
or