dcsimg
Results 1 to 2 of 2

Thread: [RESOLVED] Button code to open existing Excel file ...

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2014
    Posts
    273

    Resolved [RESOLVED] Button code to open existing Excel file ...

    What is the button code to open an existing MS Excel file? On clicking the btnOpenReport, the file SalesReport.xls should open automatically.

    File path is : "D:\VSTradersDatabase\SalesReport.xls"

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2014
    Posts
    273

    Re: Button code to open existing Excel file ...

    I tried the following code and it's working.

    Code:
    Process.Start("D:\VSTradersDatabase\SalesReport.xls")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width