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

Word Document Alignment while Exporting...

3 Answers 34 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
raaj
Top achievements
Rank 1
raaj asked on 11 May 2010, 03:32 PM
Team,

1) RG1.jpg is my webPage.
2) RG2.jpg is after exporting Radgrid to MS Word 2003.

Problem is, I want to remove the Hyperlink, and Alignment should be Right.

Kindly provide me the soln.

Thanks,
Rajesh N.

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 11 May 2010, 04:05 PM
Hello Rajesh,

Problem is, I want to remove the Hyperlink
To strip the controls/links you should set ExportOnlyData="true"
RadGrid Export Overview

and Alignment should be Right.
You can set the desired alignment manually in ItemCreated/ItemDataBound event handler:
Word/Excel export (HTML-based)

protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
    if (e.Item is GridDataItem && isExport)
        e.Item.Style["text-align"] = "right";
}

Best regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
raaj
Top achievements
Rank 1
answered on 12 May 2010, 05:41 AM
Hi Daniel,

Thanks for your sudden reply.
Further is Telerik provide Export to Word Document at particular path and opening particular document and Appending future.
or tell me whether Telerik supports any 3rd party tool for Exporting to Word Doc.

Thanks
Rajesh N.
0
Daniel
Telerik team
answered on 13 May 2010, 08:51 PM
Hello Rajesh,

At this point we don't have plans to implement such functionality in RadGrid - it would require completely new exporting engine - something we could consider in the future.

As to the second question: You could use virtually any third-party library to export to Word - this may require more or less efforts depending on the library itself.

Kind regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
raaj
Top achievements
Rank 1
Answers by
Daniel
Telerik team
raaj
Top achievements
Rank 1
Share this question
or