Inserting Hyperlinks into Forms

Inserting Hyperlinks into Forms

If you wish to insert a hyperlink into a form, the following code should be inserted in to the Code section of the form (fr3) to allow the link to run in Microsoft Edge, Chrome and Adobe PDF viewers when a '#' is included in the file path. eg: O:\Ostendo\Ostendo-Docs\PRO401342#01\Test_Doc.pdf

For the purposes of this example we are inserting the Document File Path Name into Memo 74.

procedure Memo74OnBeforePrint(Sender: TfrxComponent);

var

  pdf: string;

  i: Integer;

begin

  pdf := ;

  i := pos('#',pdf);

  if i > 0 then

    pdf := copy(pdf,1,(i-1)) + '%23' + copy(pdf,(i+1),length(pdf)-i);

  Memo74.hyperlink.value := 'file:///' + pdf;

end;


    • Related Articles

    • Email Forms Package and Tutorial

      The Email Forms package and tutorial can be download from the attachment to this article. The package consists of: EMAIL FORMS.pdf – a tutorial on how to set up and use EMAILFORMS. Forms Template folder- contains several sample forms EForms-PROCESS ...
    • Changing or Transferring Ostendo onto a new Server

      If a site requires a new server to be installed which will result in the loss of Ostendo, perform the following checks and tasks to ensure a straight forward transfer.... It is suggested that the new Server has the same name as the old server ...
    • Whats New - Release Notes

      This article includes all 'What's New' Release notes
    • How do I create email Text to support emailed documents?

      Go into File>Reporting Configuration>Specific Email Text and ‘Add’ a new record. Select the area that is covered by this email. Two extra fields will now contain the specific Text. These are the Header and Main Body of the email. These fields can be ...
    • MYOB Activation

      These 2 documents describe how to Activate and setup your MYOB file in preparation to linking with Ostendo. Select the appropriate file for your country