moss

Can I copy files to a Network Place from a script or the command line? [closed]

两盒软妹~` 提交于 2019-11-29 12:24:55
问题 Is it possible, in Windows XP, to copy files to a Network Place from the command line, a batch file or, even better, a PowerShell script? What sent me down this road of research was trying to publish files to a WSS 3.0 document library from a user's machine. I can't map a drive to the library in question because the WSS site is only available to authenticate via NTLM on a port other than 80 or 443. I suppose I could alternately use the WSS web services to push the files out, but I'm really

SharePoint and Log4Net

时光毁灭记忆、已成空白 提交于 2019-11-29 09:31:08
问题 I'm looking for best practices to integrate log4net to SharePoint for web request, feature activation and all timer stuff. I have several subprojects in my farm, and I would like to have only one Log4Net.config file. [Edit] Not only I need to configure log4net for the web application, which is easy to do (I use global.asax, and a log4net.config file, so I can modify log settings withtout reloading the webapp), but I also need to log asynchronous events: Event Handler (like ItemAdded) Timer

Attach EventReceiver to all lists of a sharepoint site

为君一笑 提交于 2019-11-29 04:42:35
Can we write an eventreceiver that gets fired when any list is updated. The listtemplateid that we have to specify for an eventreceiver makes our code specefic to one breed of lists. What if we want to have the code execute for events on all lists of site? I have the same exact requirement. Maybe it is possible to attach event receiver to System ContentType (all content types inherit that one, with id 0x) I`d check if that's possible by creating a Feature with a FeatureReceiver and programmatically adding it to System Content Type. Some details here . My path on finding a solution Allright, I

Creating a custom Document Library in SharePoint

对着背影说爱祢 提交于 2019-11-29 02:45:06
I have a document library in my SharePoint page and there are 10 documents in it. If User A is logged in I want him to only see 5 of those documents in that document library. How can I create some custom document library for this to work? I have MOSS installed. Thanks in advance! You could configure different permissions on each document in the document library. Just select the "Manage Permissions" option on each item and break the permission inheritance from the document library level. Just note that having too many documents with item level permissions can create a maintenance nightmare for

Serialization in C# without using file system

懵懂的女人 提交于 2019-11-29 00:02:59
问题 I have a simple 2D array of strings and I would like to stuff it into an SPFieldMultiLineText in MOSS. This maps to an ntext database field. I know I can serialize to XML and store to the file system, but I would like to serialize without touching the filesystem. public override void ItemAdding(SPItemEventProperties properties) { // build the array List<List<string>> matrix = new List<List<string>>(); /* * populating the array is snipped, works fine */ // now stick this matrix into the field

How can I include value of sharepoint's version column in a word document?

走远了吗. 提交于 2019-11-28 17:04:23
问题 I'm trying to work out a way to display the contents of the version column from SharePoint (i.e. the value that changes every time a file is checked in) as a field (or something similar) inside of a Word document. Ideally, I'd like to know how to configure SharePoint so I could click something like "Insert > Quick Parts > Document Property > Version", and it would include the version in the document. The goal is to make it easier for someone to correlate a printed version of a document with

Attach EventReceiver to all lists of a sharepoint site

我的梦境 提交于 2019-11-27 22:27:28
问题 Can we write an eventreceiver that gets fired when any list is updated. The listtemplateid that we have to specify for an eventreceiver makes our code specefic to one breed of lists. What if we want to have the code execute for events on all lists of site? 回答1: I have the same exact requirement. Maybe it is possible to attach event receiver to System ContentType (all content types inherit that one, with id 0x) I`d check if that's possible by creating a Feature with a FeatureReceiver and