Report for HTML Content

5 posts, 0 answers
  1. R
    R avatar
    3 posts
    Member since:
    Jan 2007

    Posted 29 Jul 2008 Link to this post

    I am using Telerik Reporting and Rad Editor.

    I want to make Report on the contents saved through RadEditor.
    I am giving HTML Content Input for Telerik Report.

    In Report(Preview on browser) it will show the complete HTML Content( for a single record) in a Page even it exceeds the page Limit.

    and when i print it prints the pure HTML and not the content.

    I want to put Header and Footer for every page. But it assumes the whole HTML contents as a single page and so I can't customize it for individual pages.

  2. Svetoslav
    Svetoslav avatar
    649 posts

    Posted 29 Jul 2008 Link to this post

    Hi R,

    Currently Telerik Reporting does not support HTML content in the TextBox item. For more information please read the Known limitations of Telerik Reporting thread.

    All the best,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. JDP
    JDP avatar
    14 posts
    Member since:
    Mar 2008

    Posted 04 Aug 2008 Link to this post

    You could programmatically  generate a report in MHTML output and not use the the Report Viewer.  Twas what I had to do.
  4. Sathish
    Sathish avatar
    25 posts
    Member since:
    Dec 2008

    Posted 13 Feb 2009 Link to this post

    Hi Could you please tell me how to set html content. I saw that in your repply, you mentioned that you can programatically generate it. will the user be able to print and get exactly what they see?
  5. JDP
    JDP avatar
    14 posts
    Member since:
    Mar 2008

    Posted 16 Feb 2009 Link to this post

    It's been awhile, but what I had to was essentially this:

    Dim report As Telerik.Reporting.Report = New Report()

    report = New MyNewReport()

    report.ReportParameters("MyID").Value = iMyReportID

    Dim mimeType As String = String.Empty
    Dim extension As String = String.Empty
    Dim encoding As Encoding = encoding.[Default]
    Dim buffer As Byte() = Telerik.Reporting.Processing.ReportProcessor.Render("MHTML", report, Nothing, mimeType, extension, encoding)

    Dim fileName As String = sMyReportNumber + ".mhtml"

    Response.ContentType = "message/rfc822" 'mimeType
    Response.Expires = 1
    Response.Buffer = False
    Response.AddHeader("Content-Disposition", String.Format("{0};FileName=""{1}""", "attachment", fileName))
    Response.OutputStream.Write(buffer, 0, buffer.Length)

Back to Top