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

Download Document (.rtf/.doc/.pdf)

5 Answers 73 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mohit Vijay
Top achievements
Rank 1
Mohit Vijay asked on 14 Aug 2009, 10:47 AM
Hello,

I want to Download the content of HTMLPlaceHolder (or any other input controls) into a document(like .rtf/.doc/.pdf) with formatting. Is it possible, How?

I also want to fire the print command. How it can be possible?

Mohit

5 Answers, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 14 Aug 2009, 10:52 AM
Hello Mohit Vijay,

the only control that suports export and printing for the moment is RadGridView. Please check these examples:
http://demos.telerik.com/silverlight/#GridView/Exporting
http://demos.telerik.com/silverlight/#GridView/Printing

We hope that with vNext of Silverlight the printing will be enabled for any element out of the box.
Please let us know if you have any other questions.

Best wishes,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mohit Vijay
Top achievements
Rank 1
answered on 14 Aug 2009, 11:02 AM
Ok, Can I bind the HTMLPlaceHolder data into a hidden GridView and the export as word document or print?

Can you please give me idea how can I bind the HTMLPlaceHolder content to the grid View dynamically (using code)?


Thanks for your quick response.

Mohit
0
Valentin.Stoychev
Telerik team
answered on 14 Aug 2009, 11:09 AM
Hello Mohit Vijay,

No, this will not be possible. HtmlPlaceholder and GridView are quite different controls and the print/export is specific to the Gridview only.

In HtmlPlaceholder you can host only Html string, or entire web page(externall url).
 
I wonder what is your scenario? Can you gives us some insights.

Thanks!

Kind regards,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Mohit Vijay
Top achievements
Rank 1
answered on 14 Aug 2009, 11:22 AM
I have a HTMLPlaceHolder that have a HTML Data (i.e html formated string, coloring, fonts, style etc...).  I want to export it into a document.

Now, If you say that only GridView has such option then, As I think, I can bind the grid view colom with HTML String (I think, grid view will also show the HTML formated data, isn't it?) and then can print and export?

Will it work?

Mohit
0
Valentin.Stoychev
Telerik team
answered on 17 Aug 2009, 06:52 AM
Hi Mohit Vijay,

In order to display html in the Grid- you will need the RadHtmlPlaceholder again. This bring us in the beggining of the discussion. The grid will not be able to export the html placeholder property. It supports only plain format.

Sincerely yours,
Valentin.Stoychev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Mohit Vijay
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Mohit Vijay
Top achievements
Rank 1
Share this question
or