Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
General Reference
Reference

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
OpenDocuments Control

An ActiveX control that allows users to create documents based on a specified template, or to edit documents with their associated applications in the context of Microsoft Windows SharePoint Services.

When the page containing a view of the document library opens and the 2007 Microsoft Office system is installed, code in the OWS.JS file creates the control on the page as follows:

new CreateObject("SharePoint.OpenDocuments.3")

NoteNote:

If the script on the page determines that the version of the application is Microsoft Office 2003, 2 is used as the version number. If the script on the page determines that the version of the application is earlier than Microsoft Office 2003, 1 is used as the version number.

OWS.JS is located in the Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\LAYOUTS\1033 directory on each front-end Web server in a Windows SharePoint Services deployment.

When a user clicks New Document on the toolbar in the list view, or clicks Edit in Application_Name on the shortcut menu or on the toolbar in Internet Explorer, methods of the OpenDocuments control are called to work with the document.

When the 2007 Office system is installed on the client computer, this control is defined in the OWSSUPP.DLL file, a dynamic-link library (DLL) that is installed on the client during the 2007 Office system setup in the Local_Drive:\Program Files\Microsoft Office\OFFICE12 directory.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
ViewDocument3      TomChm ... fabricef - MSFT   |   Edit   |   Show History

The Syntax for this method is incorrect, It should be expression.ViewDocument 3 (pdisp, bstrDocumentLocation, OpenType, [varProgID])

What are the valid values for OpenType parameter?

Added this comment in the feedback section for this topic.

Tags What's this?: Add a tag
Flag as ContentBug
Undocumented Methods from the IOWSNewDocument3 Interface      TomChm   |   Edit   |   Show History

2. The following methods are undocumented, can you explain the each of the arguments, the return values, provide an example, and identify when within the SharePoint interface these methods are called :
VARIANT_BOOL CheckinDocument(
[in] BSTR bstrDocumentLocation,
[in] int CheckinType,
[in] BSTR CheckinComment,
[in, optional] VARIANT_BOOL bKeepCheckout);

VARIANT_BOOL DiscardLocalCheckout([in] BSTR bstrDocumentLocationRaw);

void ViewInExcel(
[in] BSTR SiteUrl,
[in] BSTR FileName,
[in] BSTR SessionId,
[in] BSTR Cmd,
[in] BSTR Sheet,
[in] int Row,
[in] int Column,
[in, optional] VARIANT varProgID);

VARIANT_BOOL CheckoutDocumentPrompt(
[in] BSTR bstrDocumentLocationRaw,
[in] VARIANT_BOOL fEditAfterCheckout,
[in, optional] VARIANT varProgID);

void NewBlogPost(
[in] BSTR bstrProviderId,
[in] BSTR bstrBlogUrl,
[in] BSTR bstrBlogName);
};

TIA.

Tom

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker