write to file failed
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
write to file failed

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
botchok
Guest





Posted: Mon Nov 07, 2005 9:51 am    Post subject: write to file failed Reply with quote

Hi,
I've encountered an error in copying a file from sps 2001 document
library to my local directory.

I have this code...
vHREF = replace(objRsProjFolder.Fields("DAV:href"), "%20", " ")
' open Doc
oDoc.DataSource.Open vHREF, , adModeReadWrite

' save to local file
Set oStream = New ADODB.Stream
Set oStream = oDoc.OpenStream(, pkmOpenStreamUnspecified, , adModeRead)

oStream.Type = adTypeBinary
oStream.SaveToFile "c:\temp", adSaveCreateOverWrite
oStream.flush
set oStream = Nothing

In oStream.SaveToFile xxx, I've encountered the error - 'write to file
failed'.
If it's a permission error, I've also tried granting permission to the
path "c:\temp".
Please comment on this...

Thanks,
Botchok
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB