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

6 posts, 0 answers
  1. Mohit Vijay
    Mohit Vijay avatar
    11 posts
    Member since:
    Aug 2009

    Posted 14 Aug 2009 Link to this post

    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
  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 14 Aug 2009 Link to this post

    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.
  3. Mohit Vijay
    Mohit Vijay avatar
    11 posts
    Member since:
    Aug 2009

    Posted 14 Aug 2009 Link to this post

    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
  4. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 14 Aug 2009 Link to this post

    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.
  5. Mohit Vijay
    Mohit Vijay avatar
    11 posts
    Member since:
    Aug 2009

    Posted 14 Aug 2009 Link to this post

    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
  6. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 17 Aug 2009 Link to this post

    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.
Back to Top