change date and time of document programatically
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
change date and time of document programatically

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





Posted: Thu Jan 06, 2005 4:38 am    Post subject: change date and time of document programatically Reply with quote

hi,

is there a to change date and time of document programmatically using c#?

I hope somebodycan help me.

Thanks and regards

PIT
Back to top
Wei-Dong XU [MSFT]
Guest





Posted: Thu Jan 06, 2005 7:57 am    Post subject: RE: change date and time of document programatically Reply with quote

Hi PIT,

Could you provide detailed information regarding your requirement? Do you
mean the file creation time or modification time of the document? And is
the document located at WSS doc lib or only one single file on the hard
disk?

Expect your reply!

Best Regards,
Wei-Dong XU (WD.XU)
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Back to top
PIT
Guest





Posted: Thu Jan 06, 2005 1:33 pm    Post subject: RE: change date and time of document programatically Reply with quote

hi Wei-Dong,

yes, i file creation time or modification time of the document which is
located on WS.

do you know how can i change that?

Regards, PIT


"Wei-Dong XU [MSFT]" wrote:

Quote:
Hi PIT,

Could you provide detailed information regarding your requirement? Do you
mean the file creation time or modification time of the document? And is
the document located at WSS doc lib or only one single file on the hard
disk?

Expect your reply!

Best Regards,
Wei-Dong XU (WD.XU)
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights
Back to top
Wei-Dong XU [MSFT]
Guest





Posted: Fri Jan 07, 2005 12:16 pm    Post subject: RE: change date and time of document programatically Reply with quote

Hi,

You can use the "Properties Property" to modify the creation time and
modification time of the documents in doclib. There is one sample code in
the SDK for "Properties Property".
http://msdn.microsoft.com/library/en-us/spptsdk/html/tspSPFileProperties.asp

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong XU (WD.XU)
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Back to top
PIT
Guest





Posted: Fri Jan 07, 2005 3:31 pm    Post subject: RE: change date and time of document programatically Reply with quote

Hi Wei-Dong,

thanks for the info. can you please tell me where or what i can download, so
that i can use

using Microsoft.SharePoint;

In Moment i can't see this in my Add-Reference tab.

Thanks and regards, PIT


"Wei-Dong XU [MSFT]" wrote:

Quote:
Hi,

You can use the "Properties Property" to modify the creation time and
modification time of the documents in doclib. There is one sample code in
the SDK for "Properties Property".
http://msdn.microsoft.com/library/en-us/spptsdk/html/tspSPFileProperties.asp

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong XU (WD.XU)
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights
Back to top
Wei-Dong XU [MSFT]
Guest





Posted: Sat Jan 08, 2005 10:44 am    Post subject: RE: change date and time of document programatically Reply with quote

Hi,

The development of SPS should be at one box which has installed SPS2k3. You
will find the assembly from the .Net tab of "Add Reference" dialog, the
assembly name is "Windows Sharepoint Service" which is located at:
C:\Program Files\Common Files\Microsoft Shared\web server
extensions\60\ISAPI\Microsoft.Sharepoint.dll.

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong XU (WD.XU)
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
Back to top
PIT
Guest





Posted: Sat Jan 08, 2005 1:21 pm    Post subject: RE: change date and time of document programatically Reply with quote

Thanks

"Wei-Dong XU [MSFT]" wrote:

Quote:
Hi,

The development of SPS should be at one box which has installed SPS2k3. You
will find the assembly from the .Net tab of "Add Reference" dialog, the
assembly name is "Windows Sharepoint Service" which is located at:
C:\Program Files\Common Files\Microsoft Shared\web server
extensions\60\ISAPI\Microsoft.Sharepoint.dll.

Please feel free to let me know if you have any question.

Best Regards,
Wei-Dong XU (WD.XU)
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights
Back to top
Wei-Dong XU [MSFT]
Guest





Posted: Tue Jan 11, 2005 1:29 pm    Post subject: RE: change date and time of document programatically Reply with quote

Welcome! :0)

Best Regards,
Wei-Dong XU (WD.XU)
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
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