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 3282340
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T19:55:03+00:00 2026-05-17T19:55:03+00:00

When I open an Excel file stored on Sharepoint, I have the option to

  • 0

When I open an Excel file stored on Sharepoint, I have the option to open it Read Only or in Edit mode. If I open it Read Only, Excel opens up and I see “Server Workbook To modify this workbook, click Edit Workbook”. I need to retrieve this Excel file through an ASP.NET application, yet still have this Server Workbook functionality.

In fiddler, I see that when opening up in Sharepoint, a POST is made to SharepointSite/_vti_bin/_vti_aut/author.dll with method=getdocument as one of the parameters sent and the filename as another.

Do I need to repeat that POST via an ajax call or is there an easier way (as I suspect there is)?

  • 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-05-17T19:55:03+00:00Added an answer on May 17, 2026 at 7:55 pm

    After reviewing this post and finding that he just followed the javascript and called function editDocumentWithProgID2, I did almost that very thing. I just switched from that function to the ViewDoc javascript function.

    <a onclick="javascript: ViewDoc('http://mysite/myfile.xlsx', 'SharePoint.OpenDocuments');"...
    

    This required that I add the link to the Sharepoint javascript file Core.js on my page:

    <script src='http://mysite/_layouts/1033/core.js' type="text/javascript"
            language="javascript"></script>
    

    Now after clicking the link, the spreadsheet pops up and has the “Server Workbook” with the “Edit Workbook” button

    I wouldn’t really recommend anyone copy it, since it is pretty brittle and will break if/when we upgrade to Sharepoint 2010, and that it couples the ASP.NET and Sharepoint sites. It does the job that we need it for right now, however.

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

Sidebar

Related Questions

What's the way to open a excel workbook and to read excel cells?
I want to read already open excel file with C#. I am using this
I am using VS2005 C# and SQL Server 2005. I have an Excel file
I need to programmatically open an Excel file that is stored in a MOSS
I know how to use the OleDbConnection class to open an excel file and
Below is my code, i tried to open my excel file in my c#
I'm trying to open a Microsoft Excel file in a C# program using the
I would like to open an OleDbConnection to an Excel file that's in memory
I am trying to use ShellExecute to open a file in Excel. I was
I want to add a file type extension to the Open Dialog of Excel

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.