Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

hyperlink question

edited July 2010 in General
Can I put "raw" html code into the hyperlink properity?

pplblTicketID.HyperLink := (''+cdsDivPlanDtl.FieldByName('TICKET_ID').AsString+'');

I want to open a new browser when the link is clicked using target=_blank
but it will not work.

Any thoughts?

Thanks

Comments

  • edited July 2010
    Hi Joel,

    The hyperlink feature is designed to simply open the web page defined. If
    you would like to take complete control over the clicking of a report
    component, try using the OnDrawCommandClick event

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2010
    Do you have an example of how to do this?

  • edited July 2010
    Hi Joel,

    We use the API command ShellExecute to open the web page from Delphi. You
    can see how we do this in the ppUtils.pas file (ppShellExec routine). You
    may be able to do something similar however I'm not sure if you can use
    ShellExecute to actually execute HTML code.

    There may also be a Delphi component that can do this for you but your best
    bet might simply be to create a local HTML file that contains the code below
    and open it using ShellExecute.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2010
    I don't think we are talking about the same thing here.

    I am using the new hyperlink in the pdf output. I noticed that if you
    prepend it with https:// then it will respect the path otherwise it leads
    with the website information from the current pdf location. This works ok,
    but I would like to have full control over what I can put in this link.

    Is there any way that you can just allow me (like setting a switch to allow
    raw html text to be placed in this field so I can do my own thing if needed)
    to open a new browser window?


  • edited July 2010
    Hi Joel,

    PDF actions are limited to simple hyperlink addresses created with the
    HyperLink feature in ReportBuilder. I will add enhancing this capability to
    support more advanced HTML commands to our list of possible improvements for
    a later release of ReportBuilder.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2010
    Thanks. It would help alot to have this functionality.

This discussion has been closed.