This is a migrated thread and some comments may be shown as answers.

exporting the RadGrid to MS word

2 Answers 81 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anjali
Top achievements
Rank 1
Anjali asked on 14 Jun 2011, 12:02 AM

 I have a link

http://gyansuraj.com?ID=5

that leads to a page that has a grid in it. I can easily print this grid using

 

 

RadGrid1.MasterTableView.ExportToWord();

 

 

 

 

 

This page leads to same grid depending on the ID that I am passing as a querystring, the data of the grid keeps changing. so if I pass http://gyansuraj.com?ID=7, the data of the grid is different.

User is asking me to consolidate all these IDS and export them in MS word as diffent pages of the same document so in the above case, I will have two pages in same document, one will be with ID=7 and another one will be with ID=5.

I am not sure how can i achieve this. i can save individual word document for each ID, but I am not sure how can i consolidate all of them.
There can be at least 100 ID so they want a MS word document that has 100 pages and each page has a grid data of different ID's.

2 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 14 Jun 2011, 03:58 PM
Hello Anjali,

You can insert the following HTML element to enforce page break.
<br clear='all' style='mso-special-character: line-break; page-break-before: always' />

It won't be so easy however to combine the grids in scenario like yours.

Regards,
Daniel
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Anjali
Top achievements
Rank 1
answered on 14 Jun 2011, 04:00 PM
Yeah, I need to combine all the pages in MS word document.
Tags
Grid
Asked by
Anjali
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Anjali
Top achievements
Rank 1
Share this question
or