none
C# Windows form App with SharePoint RRS feed

  • Question

  • Hello Everyone,
    Im new to the whole C# and Visual Studio program. 
    I have been given a task to create a windows form app using C# to connect to a SharePoint site and retrieve any data from there e.g. list, files. 
    I have designed my application so that you can manually add the site url which you want then click a button and this will generate a xml file with all the data which is in the site. 
    This is the way i need my xml to be set out:

    The report should be in either csv or xml format e.g.

    <SiteCollection Name=”SiteCollection”>

    <Web Name=”Web Name”>

    <Library Name=”Library Name”>

    <Document Name=”DocName1”/>

    <Folder Name=”Folder Name”>

    <Document Name=”DocName2”/>

    <Document Name=”DocName3”/>

    </Folder>

    </Library>

    <List Name=”List Name”>

    <Web Name=”Web Name”>

    <Library Name=”Library Name”>

    <Document Name=”DocName1”/>

    <Folder Name=”Folder Name”>

    <Document Name=”DocName2”/>

    <Document Name=”DocName3”/>

    </Folder>

    </Library>

    <List Name=”List Name”>

    </Web>

    </Web>

    </SiteCollection>

    This is how I have my code for my app set out so far: 

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Administration;


    namespace SharePoint.College
    {
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }

    private void Form1_Load(object sender, EventArgs e)
    {

    }

    private void textBox1_TextChanged(object sender, EventArgs e)
    {

    }

    private void btn1_Click(object sender, EventArgs e)
    {


    }
    }

     


    Im just looking for some advice and some help to start this off. 

    Thanks for any replies 

    Tuesday, September 10, 2013 10:11 AM