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

Open Word,Excel & PDF

3 Answers 39 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Prabha
Top achievements
Rank 1
Prabha asked on 17 Jun 2014, 11:35 AM
Hi All,

I have to convert a varbinary data into selected (it may be word/excel/PDF)  document type and show the content in browser itself. May i know which control in Rad will be use for this requirement?

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 18 Jun 2014, 07:50 AM
Hi Prabha,

You could simply bind your data or a RadGrid control and use it visualize the data in browser. The RadGrid control also provides export functionality to all mentioned formats. See the examples below:

http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/export-word-csv/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/excel-export/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/exporting/pdf-export/defaultcs.aspx




Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Prabha
Top achievements
Rank 1
answered on 18 Jun 2014, 09:09 AM
hai Maria ,

Thank you for your reply. But actually what i need is , i will redirect a page from another page. In that i will pass a querystring(ID). when the page open that it will retrieve the data(file content, file type, filename)  from backend(filecontent  in "Varbinary" format  ) and have to show that file in side any control like iframe(it may be work or excel or pdf).
0
Kostadin
Telerik team
answered on 23 Jun 2014, 08:00 AM
Hi Prabha,

What you are trying to achieve is not possible. The reason is that varbinary data type can store anything and in this case you need to manually cover the data and use the RadControls only to visualize the content.

Regards,
Kostadin
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Ajax
Asked by
Prabha
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Prabha
Top achievements
Rank 1
Kostadin
Telerik team
Share this question
or