Programmaticaly Save Document to Sharepoint Document Library
A week after partner update in IKIN, Semarang - I finally came back there again to help some of the technical challenge in their upcoming project. The project seems interesting for me, they will use Teleform - Verity to scan the form papers and stores the softcopy to sharepoint document library.
Here’s a code that we use to store a document/file programmaticaly to windows sharepoint services document library, depending on your scenario, you can change the process of File selection from OpenFileDialog control with your database record, etc…
private void UploadFile()
{
if( File1.ShowDialog() == DialogResult.OK ) {
string strFileName= File1.FileName;
string destUrl = “http://localhost:8083/Shared Documents/tes.log“;//+strFileName;