Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8185407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:50:15+00:00 2026-06-07T01:50:15+00:00

The most easy way to open a file with the default application is: System.Diagnostics.Process.Start(@c:\myPDF.pdf);

  • 0

The most easy way to open a file with the default application is:

System.Diagnostics.Process.Start(@"c:\myPDF.pdf");

However, I would like to know if exists a way to set parameters to the default application, because I would like to open a pdf in a determinate page number.

I know how to do it creating a new process and setting the parameters, but this way I need to indicate the path of the application, and I would like to have a portable application and not to have to set the path of the application each time I use the application in other computer. My idea is that I expect that the computer has installed the pdf reader and only say what to page open.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T01:50:16+00:00Added an answer on June 7, 2026 at 1:50 am

    If you want the file to be opened with the default application, I mean without specifying Acrobat or Reader, you can’t open the file in the specified page.

    On the other hand, if you are Ok with specifying Acrobat or Reader, keep reading:


    You can do it without telling the full Acrobat path, like this:

    using Process myProcess = new Process();    
    myProcess.StartInfo.FileName = "acroRd32.exe"; //not the full application path
    myProcess.StartInfo.Arguments = "/A \"page=2=OpenActions\" C:\\example.pdf";
    myProcess.Start();
    

    If you don’t want the pdf to open with Reader but with Acrobat, chage the second line like this:

    myProcess.StartInfo.FileName = "Acrobat.exe";
    

    You can query the registry to identify the default application to open pdf files and then define FileName on your process’s StartInfo accordingly.

    Follow this question for details on doing that: Finding the default application for opening a particular file type on Windows

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using TrueZIP, is there a way to open and modify an existing ZIP file
I was wondering what would be the most efficient way to make a map
I would like to have an easy way to run queries like the following
I need an easy way to take a tar file and convert it into
I was wondering how you find it most easy to setup your controllers. Do
I'm new to Java programming and am facing a (most likely) easy problem that
This is most likely not an easy one but here is the situation: I
This is probably seriously easy to solve for most of you but I cannot
We all run into errors using Drupal-- most of which are easy to fix.
New to javascript, but I'm sure this is easy. Unfortunately, most of the google

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.