Post by John SI have an app that currently writes an XML file to disk using a StreamWriter.
I now need to write this file into a SPS document library. StreamWriter won't
accept a URI for the file name.
Can someone suggest how this might be done.
Take a look at the VBA code I use to attach a document to a message and mail it
to a "SharePoint enabled" public folder. You should be able to do something
similar.
My example of automatically capturing files for a SharePoint document
library is now posted on my blog. The document names and URLs are:
Automating Tip Capture with Office Systems 2003 Part 1
http://msmvps.com/obts/articles/71691.aspx
Automating Tip Capture with Office Systems 2003 - Part 2
http://msmvps.com/obts/articles/71693.aspx
The process uses the mechanism of posting the documents as attachments
to Exchange public folders, and designating the target document
libraries as mail-enabled and linking them to a specific public folder.
Once this is done, a SharePoint process, related to the search timer,
looks in the public folder for new documents, and copies the
attachments to the document library.
Hollis D. Paul [MVP - Outlook]
***@outhousebythesound.com
Mukilteo, WA USA