How to open any documents in EDIT Mode from custom ASPX page

Hello Reader,

I have moved to new site and here is new article link from where you can post comments/feedback.

http://sanketinfo.blogspot.com/2009/12/how-to-open-any-documents-in-edit-mode.html

Sorry for any inconvenience.

~Sanket

Advertisements

2 Responses

  1. Do you have an example of the script and how to use it?

    • Here is Script with example, you need to add below script into hyperlink or button control in which user is going to click for opening any documents.

      E.g.

      string str = “return editDocumentWithProgID2(‘http://localhost.com/spsite/docs/expense.xls’, ”, ‘SharePoint.OpenDocuments.3’, ‘0’,’http://localhost.com/spsite’, ‘0’);”;
      ExcelIconHyperLink.Attributes.Add(“onclick”, str);

      Thanks,
      Sanket

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: