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

Report to WebForm

1 Answer 148 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 29 Apr 2007, 06:11 PM
I have created my first Telerik Report and I can preview it with both regular and HTML. My question, is now how do I get that to the report viewer that is on my webform? I tried to follow the documentation but I am missing something.

Anyone with some advice?

Thanks,

1 Answer, 1 is accepted

Sort by
0
ernie racer
Top achievements
Rank 1
answered on 01 May 2007, 02:42 AM
my advice: look through the samples  :-) but i understand, i had for 2 min the same problem and was confused too, when a looked through the samples (kind of weird [the generating of the startpage at least) and too complicated from my point of view)..

the fast way:
1. create a page (or a user control...)
2. place the reportviewer control on that page (by hand or drag'n'drop)
3. then give the report (which is a class) over to the reportviewer

i.e. in the page_load event:

Report1 r = new Report1();  //<- that's your report, don't forget namespace(s)
r.DataSource = xxx //.... databind here or wherever you like and prefer
ReportViewer1.Report = r;

press F5, that's it..

daniel
Tags
General Discussions
Asked by
Eric
Top achievements
Rank 1
Answers by
ernie racer
Top achievements
Rank 1
Share this question
or