| Author |
Message |
John S
Guest
|
Posted:
Wed Oct 26, 2005 4:51 pm Post subject:
Writing files to SPS |
|
|
I 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. |
|
| Back to top |
|
 |
Hollis D. Paul
Guest
|
Posted:
Wed Oct 26, 2005 6:11 pm Post subject:
Re: Writing files to SPS |
|
|
In article <15A207C9-ED72-488A-A581-9F6EA4F61227@microsoft.com>,
=?Utf-8?B?Sm9obiBT?= wrote:
| Quote: | I 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]
Hollis@outhousebythesound.com
Mukilteo, WA USA |
|
| Back to top |
|
 |
Harsh[MSFT]
Guest
|
Posted:
Thu Oct 27, 2005 12:52 am Post subject:
Re: Writing files to SPS |
|
|
Hi Hollis,
Have you checked:
Get a handle to a doc library,
use this (SPList object) to create a new document and then write into this
file.
Let me know how this goes. In the mean while let me try and piece together a
sample on this.
--
Thanks and Regards
Harsh[MSFT]
"Hollis D. Paul" wrote:
| Quote: | In article <15A207C9-ED72-488A-A581-9F6EA4F61227@microsoft.com>,
=?Utf-8?B?Sm9obiBT?= wrote:
I 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]
Hollis@outhousebythesound.com
Mukilteo, WA USA
|
|
|
| Back to top |
|
 |
Hollis D. Paul
Guest
|
Posted:
Thu Oct 27, 2005 4:32 am Post subject:
Re: Writing files to SPS |
|
|
In article <E7057251-2C83-4523-B78C-671CA6A55FCB@microsoft.com>,
=?Utf-8?B?SGFyc2hbTVNGVF0=?= wrote:
| Quote: | Get a handle to a doc library,
use this (SPList object) to create a new document and then write into this
file.
This is getting to sound like VB.Net, to which I haven't decided to move, but |
probably will, or at least VSTO. I must say I have grown weary of changing
programming languages, just because MS needs a new Big Thing every 5 years to
motivate its own workers.
A sample would be a welcome addition to the mix. Let me know where it is
posted.
Hollis D. Paul [MVP - Outlook]
Hollis@outhousebythesound.com
Mukilteo, WA USA |
|
| Back to top |
|
 |
Wei-Dong XU [MSFT]
Guest
|
Posted:
Mon Oct 31, 2005 8:13 am Post subject:
RE: Writing files to SPS |
|
|
Hi ,
How are you? I am just checking if there is anything further we can do for
you. If so, please let me know.
Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.
It is my pleasure to be of assistance. |
|
| Back to top |
|
 |
Wei-Dong XU [MSFT]
Guest
|
Posted:
Mon Oct 31, 2005 9:51 am Post subject:
RE: Writing files to SPS |
|
|
Please feel free to let me know if any further question on this matter. :-)
Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.
It is my pleasure to be of assistance. |
|
| Back to top |
|
 |
John S
Guest
|
Posted:
Mon Oct 31, 2005 9:51 am Post subject:
RE: Writing files to SPS |
|
|
Hi,
I haven't tried either of the suggested methods yet but they look as if they
will point me in the right direction.
Thanks
"Wei-Dong XU [MSFT]" wrote:
| Quote: |
Hi ,
How are you? I am just checking if there is anything further we can do for
you. If so, please let me know.
Best Regards,
Wei-Dong XU
Microsoft Product Support Services
This posting is provided "AS IS" with no warranties, and confers no rights.
It is my pleasure to be of assistance |
|
|
| Back to top |
|
 |
|
|
|
|