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

Report for HTML Content

4 Answers 266 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
R
Top achievements
Rank 1
R asked on 29 Jul 2008, 06:29 AM

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.

thanks,
RR

4 Answers, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 29 Jul 2008, 08:03 AM
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,
Svetoslav
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
JDP
Top achievements
Rank 1
answered on 05 Aug 2008, 12:42 AM
You could programmatically  generate a report in MHTML output and not use the the Report Viewer.  Twas what I had to do.
0
Sathish
Top achievements
Rank 1
answered on 13 Feb 2009, 07:42 PM
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?
0
JDP
Top achievements
Rank 1
answered on 16 Feb 2009, 12:34 PM
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.Clear()
Response.ContentType = "message/rfc822" 'mimeType
Response.Cache.SetCacheability(HttpCacheability.[Private])
Response.Expires = 1
Response.Buffer = False
Response.AddHeader("Content-Disposition", String.Format("{0};FileName=""{1}""", "attachment", fileName))
Response.OutputStream.Write(buffer, 0, buffer.Length)
Response.End()

Tags
General Discussions
Asked by
R
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
JDP
Top achievements
Rank 1
Sathish
Top achievements
Rank 1
Share this question
or