Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1493
  • Last Modified:

Copy binary files to/from Sharepoint 2010 using VBA?

I have a hybrid Sharepoint 2010/Access 2010 application that is managed/distributed via SharePoint 2010 but runs on the user's workstation (it is code-intensive and cannot run in SharePoint).

The first time a user copies the application to the workstation and executes it, a set of folders is created on the user's C: drive, into which a number of binary files need to be copied from a Sharepoint library.

Once the user's environment is set up, the product of executing the application, which is a production app that runs daily, is a set of xml and html pages that are copied to a Sharepoint library specified by the user.

 Can anybody point me to a good way to manage these copy operations within the Access app in VBA?
0
dgmoore1
Asked:
dgmoore1
  • 3
1 Solution
 
Ivan PadabedDirector, Technology SolutionsCommented:
check a way to use Web Services from VBA. you can do the work using _vti_bin services of the SharePoint
0
 
KoenVostersCommented:
I'm not at all a VBA specialist, but you can use the copy web service (copy.asmx) to upload files to SharePoint.
http://www.learningsharepoint.com/2010/09/03/upload-a-document-using-web-service-in-sharepoint-2010/
0
 
dgmoore1Author Commented:
I just ran across this quote on StackOverFlow:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Microsoft did some magic in SharePoint to make the libraries appear as Windows network shares to the clients. So, your program can just save the file to the UNC path.

So if you are logged on as a user with permissions to the library and the URL to the library is http://SHAREPOINT/Department/Files/ (for example), you can just save or copy the PDF files to \\SHAREPOINT\Department\Files\.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

If this were true it would make life much easier, but as far as I can tell it does not work. When I try it I just get "Path not found". Does anybody know anything about this??
0
 
dgmoore1Author Commented:
Excuse me - the error I get is "Bad file name or number", not "Path not found"
0
 
dgmoore1Author Commented:
Scenario has changed; solution is no longer needed
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now