Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Check-in documents to MS SPS 2003 via VB6

  Asked By: Abhilash    Date: Aug 13    Category: Sharepoint    Views: 1257

I used to use MS SPS 2001 with VB6 (via PKMCDO) to browse folders and
check-in documents to server. It works fine.

However, recently I've tried to work on MS SPS 2003, but it seems that
it does not work.

How can I do so for MS SPS 2003? Should I use another library?



7 Answers Found

Answer #1    Answered By: Naimish Misra     Answered On: Aug 13

you will have to use the SharePoint Object model with VS.NET.

Answer #2    Answered By: Terence Thornton     Answered On: Aug 13

I've tried by using C# on these 2 components:
1. Windows SharePoint Services component (Microsoft.SharePoint.dll)
2. SharePoint Portal Server executable (Microsoft.SharePoint.Portal.dll)

It works fine on my PC.

However, when I try to deploy to another PC and run the program, these
errors are shown:

Unhandled Exception: System.IO.FileNotFoundException: File or assembly
name Micr
osoft.SharePoint.Library, or one of its dependencies, was not found.
File name: "Microsoft.SharePoint.Library"

Should I need to install anything on the deployment PC?

Answer #3    Answered By: Alka Sarabhai     Answered On: Aug 13

You could also use VB5 against the web services that come with SPS 2003.
Not all of the functionality would be available but most of the things you
are looking for are available.

Answer #4    Answered By: Eashan Nadkarni     Answered On: Aug 13

The two dlls you listed are not remotable. This means that code that
uses them must run on the SPS Server. You can not deploy these two
assemblies to another machine.

I am assuming that your PC contains SPS and the other does not?

Answer #5    Answered By: William Odom     Answered On: Aug 13

If I can't use the SPS object model, how can I used for remote
connecting to SPS2003?

Answer #6    Answered By: Mia Scott     Answered On: Aug 13

My prefered method is to create a custom web service that runs on the
SharePoint box and then use that web service on the client side. The
provided web services never seem to easily do quite what I want and the
object model is just easier to work with. I believe the SDK actually
has a sample of creating a custom web service for document check in and
check out.

Answer #7    Answered By: Kristian Chaney     Answered On: Aug 13

Actually, your best bet is not to use a web service. A large part of why there
isn't an OOTB web service is that SOAP is ill-suited for transferring large
amounts of data. There is no chunking capability, which means any error
requires resending the entire file. I'd suggest instead you look into using the
FPRPC interfaces (what Office uses) instead.

Didn't find what you were looking for? Find more on Check-in documents to MS SPS 2003 via VB6 Or get search suggestion and latest updates.