Posted 27 January 2018, 5:41 pm EST
Is it possible to insert a hyperlink in a report?
For example enter http://maps.google.com/maps?q=43.692210200,11.461765500 and allow the user to click the link to open Google Maps.
Thank you and greetings.
Beppe
Forums Home / ActiveReports / ActiveReports v3-6
Posted by: beppesalvaderi on 27 January 2018, 5:41 pm EST
Posted 27 January 2018, 5:41 pm EST
Is it possible to insert a hyperlink in a report?
For example enter http://maps.google.com/maps?q=43.692210200,11.461765500 and allow the user to click the link to open Google Maps.
Thank you and greetings.
Beppe
Posted 29 January 2018, 1:27 am EST
Hello,
You need to set “Hyperlink” property of “TextBox”, “Label” or "Picture’ report items to valid URL address to navigate to specified link:
Thanks,
Mohit
Posted 29 January 2018, 5:25 pm EST
Hello,
thanks for the reply.
But I still have a small problem:
Me.LabelMaps.Text = “GO TO MAPS”
Me.LabelMaps.HyperLink = “https://www.google.com/maps?q=43.692210200,11.461765500”
does not work
Me.LabelMaps.Text = “https://www.google.com/maps?q=43.692210200,11.461765500”
Me.LabelMaps.HyperLink = “https://www.google.com/maps?q=43.692210200,11.461765500”
It works!
Because?
Best regards.
Beppe
Posted 30 January 2018, 1:03 am EST
Hello,
I am unable to reproduce the problem at my end. Please refer the attached report. Could you please attach your report file for me to run and reproduce the issue. Can you please specify the exact version of AR that you’re facing the issue with?
Thanks,
Mohit
ActiveReport1.zip
Posted 31 January 2018, 6:29 pm EST
Hello Mohit,
Thanks for the reply.
I use AR6 version 6.0.1797.0
I am attaching the report.
Beppe
Posted 31 January 2018, 6:31 pm EST
Try again to attach the report.
BeppeMyRpt.zip
Posted 31 January 2018, 11:24 pm EST
Hello,
Still, I am unable to reproduce the issue with the above report using the SP3 build of AR6. So, I would request to upgrade to AR6 Sp3 version to get rid of this issue. You could find the installer from the following link.
http://cdn.grapecity.com/ActiveReports/legacy/ar6_6.3.4797.zip
Thanks,
Mohit
Posted 4 February 2018, 10:12 am EST
Hi Mohit,
I installed the SP3.
I had to delete AR6 6.0.1797.0 and refer again to the AR6 components in the projects ![]()
I attach the rpx file generated with version 6.3.4797.0.
Greetings.
Beppe
Posted 5 February 2018, 12:47 am EST
Hello,
Unfortunately, still, I am unable to replicate the issue with the attached report at my end. Please refer the attached image. Please make sure that you have deleted all reference of AR6 6.0.1797.0 in your project. Also, could you please check by creating the new sample application. Is the issue also observed with the newly created sample.
Thanks,
Mohit
Posted 7 February 2018, 12:11 pm EST
Hi Mohit,
I deleted all the AR references and then I recreated them but the problem is not solved.
As I have already written in a previous message:
Me.LabelMaps.Text = “GO TO MAPS”
Me.LabelMaps.HyperLink = “https://www.google.com/maps?q=43.692210200,11.461765500”
does not work
Me.LabelMaps .Text = “https://www.google.com/maps?q=43.692210200,11.461765500”
Me.LabelMaps.HyperLink = “https://www.google.com/maps?q=43.692210200,11.461765500”
It works!
But maybe I forgot to say that I print the report in a PDF file ![]()
Best regards.
Beppe
Posted 8 February 2018, 1:58 am EST
Hello,
Could you please try PDF export feature of AR instead of print the report in PDF file. Please refer the attached code.
DataDynamics.ActiveReports.ActiveReport rpt = new DataDynamics.ActiveReports.ActiveReport();
            System.Xml.XmlTextReader xtr = new System.Xml.XmlTextReader(@"..\..\MyRpt2.rpx");
            rpt.LoadLayout(xtr);
            rpt.Run();
DataDynamics.ActiveReports.Export.Pdf.PdfExport pdfexport = new DataDynamics.ActiveReports.Export.Pdf.PdfExport();
            pdfexport.Export(rpt.Document, @"..\..\pdfExpt.pdf");
Hope it helps.
Thanks,
Mohit