RE: How to write custom Sharepoint.OpenDocuments control?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Wei-Dong XU [MSFT] (v-wdxu_at_online.microsoft.com)
Date: 02/11/05


Date: Fri, 11 Feb 2005 03:19:43 GMT

Hi,

So far as I know, there is no one public article from Microsoft introducing
the detail of developing one ActiveX OpenDocuments control. Furthermore, I
haven't found one article introducing this either.

>From my view, this situation (no any article regarding this development)
should be caused by the client application design. Different client
application has different internal implementation on opening the doc in the
sharepoint.

Some can open the doc in Sharepoint doclib directly; for example Word/Excel
2003 etc has the built-in feature "shared workspace", we can use the VBA
code below or identical automation code in C#/VB.net/J#/VB/C++ to open the
doc in Word 2003.
'---vba code ----
Application.Documents.Open "http://
name>/Shared%20Documents/<docname>.doc"
'---end---

Perhaps some others should firstly download the doc and then open it. Some
use Frontpage RPC to open the doc, some use the web service. So one article
on this development may need to cover too much or only focus on one client
application.

For your scenario, I'd suggest you can develop one new activex at client
side, taking advantage of your client app to open the doc.
And then insert one new menu item at the document library for opening the
file. This way, there is no need for you to affect the default design of
Sharepoint; it will also be easy for the development. One SDK article
introduces the method on inserting one new menu item.
"Customizing the Shortcut Menu for List Items"
http://msdn.microsoft.com/library/en-us/spptsdk/html/tsptAddingContextMenu_S
V01068564.asp

The latest SPS SDK is avaiable at 2/3/2005 from this link:
http://www.microsoft.com/downloads/details.aspx?FamilyID=aa3e7fe5-daee-4d10-
980f-789b827967b0&DisplayLang=en

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong XU
Microsoft Product Support Services

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
Business-Critical Phone Support (BCPS) provides you with technical phone
support at no charge during critical LAN outages or "business down"
situations. This benefit is available 24 hours a day, 7 days a week to all
Microsoft technology partners in the United States and Canada.
This and other support options are available here:
BCPS:
https://partner.microsoft.com/US/technicalsupport/supportoverview/40010469
Others: https://partner.microsoft.com/US/technicalsupport/supportoverview/

If you are outside the United States, please visit our International
Support page:
http://support.microsoft.com/default.aspx?scid=%2finternational.aspx.
=====================================================
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.



Relevant Pages

  • Re: Shared fax
    ... What is your client computer's Outlook version? ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ...
    (microsoft.public.windows.server.sbs)
  • RE: Automatically add trusted publisher to client store
    ... If you put a txt file in the same virtual directory where the pfx file ... does your client machine need a proxy to access network ... Microsoft Online Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: VPN and Remote Desktop Problems
    ... Have you applied Security Update for Microsoft Windows 835732 to patch ... it can cause the ICF to disconnect the VPN connection ... the router/NAT device) between the ISA server and client for testing? ... help and advice from a Microsoft support professional. ...
    (microsoft.public.windows.server.sbs)
  • Re: Win2k VPN Client doees work. Winxp Client does?
    ... thank you for using Microsoft newsgroup. ... Microsoft CSS Online Newsgroup Support ... Winxp Client does? ...
    (microsoft.public.windows.server.sbs)
  • *How MSFT *Deliberately, Arrogantly, Egregiously, and Totally* Fails to Support their Products*
    ... this support into the ground. ... Microsoft, particularly developers, as well as those who don't will become ... who adapted MSDE 2000 to Buggy BCM Version 1--aprimitive Beta in a package. ... Support you have ceded to incompetent Convergys. ...
    (microsoft.public.windowsxp.help_and_support)