Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have to export all list items of a list to word document on one click. For example, i have created a list and added some rows of item, on the bottom of the list page there should be a button, on clicking on this button all rows item should be exported to word doc. this I have to do programmatically.
this requirement is on urgent basis, please help me and provide the code for the same.

Thanks
Harsh
Posted
Updated 16-Apr-10 5:35am
v3

Sure, here it is :

private void button1_Click(object sender, EventArgs e)
{
    ExportToWord(this.spList);
}


All you have to do now is implement the ExportToWord function.

Cheers
 
Share this answer
 
v2
Sorry, I have missed to mention it's sharepoint project, I have to implemnent it for sharepoint list items.

Thanks,
Harsh
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900