Solved

Copy binary files to/from Sharepoint 2010 using VBA?

Posted on 2011-02-14
5
1,456 Views
Last Modified: 2012-06-27
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
Comment
Question by:dgmoore1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 9

Expert Comment

by:Ivan Padabed
ID: 34888048
check a way to use Web Services from VBA. you can do the work using _vti_bin services of the SharePoint
0
 
LVL 14

Expert Comment

by:KoenVosters
ID: 34889504
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
 

Author Comment

by:dgmoore1
ID: 34909130
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
 

Accepted Solution

by:
dgmoore1 earned 0 total points
ID: 34909150
Excuse me - the error I get is "Bad file name or number", not "Path not found"
0
 

Author Closing Comment

by:dgmoore1
ID: 34995366
Scenario has changed; solution is no longer needed
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question