Author Topic: Link to Documents pdf  (Read 1418 times)

frenelius

  • Newbie
  • *
  • Posts: 7
    • View Profile
Link to Documents pdf
« on: June 29, 2021, 08:43:55 AM »
Hello,

I would like to know if it is possible to add some PDFs about the machine documentation and open them from AHMI (not embedded, just a link to open the OS default PDF viewer).

I cannot find an easy way.

Thank you!

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: Link to Documents pdf
« Reply #1 on: June 29, 2021, 03:22:24 PM »
You need to make sure to set that pdf file to copy to output directory then add a button to the form and use its Click event:


Code: [Select]
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Process.Start("QuickStart.pdf")
    End Sub


frenelius

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Link to Documents pdf
« Reply #2 on: June 30, 2021, 01:13:49 AM »
WOW, thank you so much. That was an easy way indeed  :D