Open a specific page in a PDF file c#

后端 未结 5 1305
伪装坚强ぢ
伪装坚强ぢ 2021-01-15 19:41

I open a pdf file when my form is loaded with the following code:

Process process = new Process();
ProcessStartInfo startInfo = new ProcessStartInfo();
proce         


        
5条回答
  •  醉话见心
    2021-01-15 20:22

    you can try this code.

      Process myProcess = new Process();
      myProcess.StartInfo.FileName = @"C:\Program Files\Adobe\Reader 11.0\Reader\AcroRd32.exe";
      myProcess.StartInfo.Arguments = "/A \"page={pagenum}\" \"c:\\Classic\\Manual\\DocumentationManual.pdf\"";
      myProcess.Start();
    

    please change the path of AcroRd32.exe as per your directory.

    Thanks

提交回复
热议问题