Hyperlink in AR6

Posted by: beppesalvaderi on 27 January 2018, 8:41 am EST

    • Post Options:
    • Link

    Posted 27 January 2018, 8:41 am 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 28 January 2018, 4:27 pm 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, 8:25 am 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 29 January 2018, 4:03 pm 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, 9:29 am 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, 9:31 am EST

    Try again to attach the report.

    BeppeMyRpt.zip

  • Posted 31 January 2018, 2: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, 1: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 :frowning:

    I attach the rpx file generated with version 6.3.4797.0.

    Greetings.

    Beppe

    MyRpt2.zip

  • Posted 4 February 2018, 3:47 pm 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, 3:11 am 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 :frowning:

    Best regards.

    Beppe

  • Posted 7 February 2018, 4:58 pm 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

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels