Open a specific page in a PDF file c#

后端 未结 5 1264
伪装坚强ぢ
伪装坚强ぢ 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 19:59

    call it like what was suggested here: Adobe Reader Command Line Reference

    So it would be:

        ProcessStartInfo startInfo = new ProcessStartInfo();
        startInfo.FileName = "EXE_PATH\\AcroRd32.exe";
        startInfo.Arguments = "/A \"page=PAGE_NUM\" \"FILE_PATH\"";
        Process.Start(startInfo);
    

提交回复
热议问题