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

Create a reoport based on a page

3 Answers 61 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Maxime
Top achievements
Rank 1
Maxime asked on 23 Jul 2012, 09:21 AM
Hello,

I am working with the Telerik reporting tool. I have created a page, where are displayed 4 charts (1 RadChart & 3 HTMLChart).
I was wondering if it would be possible to put this entire page inside a report (like it was a printscreen or something like that).

I have created those charts with codebehind. Series are added with LINQ queries, and i would like to allow the user to do PDF export, for example.

Many thanks for your help !
PS : Sorry for the mistake inside the title :p

3 Answers, 1 is accepted

Sort by
0
Accepted
Massimiliano Bassili
Top achievements
Rank 1
answered on 23 Jul 2012, 10:36 AM
Telerik Reporting serves a different purpose, it is not a one way stop for "put what I see on my screen in a document" solution. Adding printscreen to a report would not do you any good as it would be exported as image in any format. If your goal is to provide export capability, you should create a report with the same layout from scratch. You can save your charts to images and display them in reports like in this thread: Use asp:chart in Telerik Reports.

Cheers!
0
Maxime
Top achievements
Rank 1
answered on 23 Jul 2012, 11:50 AM
Hello,

First, thank your for this answer.

I think that i explained it in a wrong way. I generate 4 charts dynamicly in codebehind. 3 of them are HTMLChart, 1 is a RadChart.
About the "printscreen", it's a way to describe what I would like to achieve, and not exaclty what I want. I just want a report with 4 charts that already exist, and provide PDF export (for example) to the user.

I guess that is impossible to use HTMLChart inside a report, right ? I must use the Reporting chart. So, i must develop again what i aleady done, but inside a report, that's it ?

Yes, i want my 4 charts inside a report :) For example, on the page where are the 4 charts, i would like, by clicking on a button, generate the report.

Many thanks :)
0
Accepted
Steve
Telerik team
answered on 25 Jul 2012, 03:42 PM
Hello Maxime,

Massimiliano's reply is spot on - you can't use external charts or components inside a Telerik Report, but specifically as you need chart (which is always an image), you can save that image and show it inside the report in a PictureBox item. The link Massimiliano provided is an useful resource to get you started.

Kind regards,
Steve
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Maxime
Top achievements
Rank 1
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Maxime
Top achievements
Rank 1
Steve
Telerik team
Share this question
or