Displaying a pdf file from Winform

前端 未结 11 1123
醉梦人生
醉梦人生 2020-12-09 03:03

I\'m just creating a simple calculator in C# (windows form)

I\'ve created a \"User Help\" which is a pdf file, what I want is to display that pdf file if the user cl

11条回答
  •  遥遥无期
    2020-12-09 03:40

    If your user has Adobe Reader (or any other PDF reader) installed on their machine, you could use:

    System.Diagnostics.Process.Start(
           "My-PDF-file.pdf");
    

    Hope this helps.

    Note: Obviously, this will fail if the user does not have any PDF Reader applications installed.

提交回复
热议问题