Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

updating a file and unacceptable charactars

Status
Not open for further replies.

cyrus71

Programmer
Feb 6, 2006
34
SE
Hi,

I am trying to add my feeds to SharePoint's Shared Documents as .doc files, (by using SPSite, SPWeb, SPFolder and SPFile) this step has been done.

but i have two problems;

1. how can i update(overwrite) an existing file.
2. sometimes i get exception that the file name contains unacceptable charactars. how can i solve this? because i must have these charactars.

thanks
 
1. There should be a property in the SharePoint object that is set to ignore dialogs for overwrite. (Not real sure about that, but many other MS products have this property in their object models.)

2. If they're not acceptable to Windows, there's no way SP will accept them.

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
Eschewing obfuscation diurnally.
 
1. When opening the files use the drop down and edit in word choice. That will open it in word to edit. If you just click on the file name or icon it will open but as read-only. You can still save any changes you make it will just bring up a name dialog box but keep the same name and it will overwrite

2. Because Share point is web based special characters will not work because internet explorer will not accept them. Usually you can just change which character you use IE change 4/8/06 to 4-8-06


When frustrated remember, in the computer world there is almost always a backdoor.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top