Thanks.
6 Answers, 1 is accepted
We have the following questions/suggestions:
- what is the version of Telerik Reporting you're using? There was such a problem in the HTML rendering in versions prior to Q3 2011, so upgrade to resolve the problem.
- what is the rendering format in which you get this problem?
- what is the layout of your report i.e. is the panel to the rightmost of the report?
All the best,
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 >
- I am using a version prior to to Q3 2011.
- Rendering format is HTML. Even within the report designer, when I switch from Designer to Preview, the panel borders look fine but when I switch to the HTML Preview, the right border disappears.
- The layout is to the right of the report.
Questions
Question 1) - Will I need to pay for the upgrade?
Question 2) Can one use c# within an asp.net .cs page to programatically find a report item (e.g. textbox) that is on a report and the report is bind to a report book? (And of course reportbook is bind to ReportViewer)
Please note that I am able to find a report item if the item is on a report and the report is bind to a ReportViewer. Hope my question make sense!
Thanks.
Up to your questions:
- As mentioned in my previous post, this problem has been fixed in the Q3 2011 release, so you would have to upgrade to resolve it. If your license has expired and thus does not entitle you to download this version, you would have to purchase a new license in order to download it. If you do not wish to upgrade at this time, you can try applying right padding to the panel e.g. 2pt that should address the problem.
- Yes, you can. The Report book is a collection of report, so you can access them directly by index e.g.:
protected
void
Button1_Click(
object
sender, EventArgs e)
{
Telerik.Reporting.ReportBook reportb = (Telerik.Reporting.ReportBook)
this
.ReportViewer1.Report;
Telerik.Reporting.TextBox txt = reportb.Reports[0].Items.Find(
"textBox6"
,
true
)[0]
as
Telerik.Reporting.TextBox;
}
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 >
I very much appreciate your feedback.
Best,
Jeff
I am unable to use the code you provided to find a reportbook on the reportviewer. I added the ReportBookControl onto my form, set the Report property of my reportviewer to the reportbook control. I then use the code below but the reportb is always null. Not really sure what I may be doing wrong.
protected void Button1_Click(object sender, EventArgs e)
{
Telerik.Reporting.ReportBook reportb = (Telerik.Reporting.ReportBook)this.ReportViewer1.Report;
Telerik.Reporting.TextBox txt = reportb.Reports[0].Items.Find("textBox6", true)[0] as Telerik.Reporting.TextBox;
}
Thanks
Jeff
With the latest version of Telerik Reporting - 2012 Q2 - we have introduced the concept of the report sources.
In order to get the reference to ReportBook from the ReportViewer you should change you code like this:
protected
void
Button1_Click(
object
sender, EventArgs e)
{
Telerik.Reporting.InstanceReportSource instanceReportSource = (Telerik.Reporting.InstanceReportSource)
this
.ReportViewer1.ReportSource;
Telerik.Reporting.ReportBook reportb = (Telerik.Reporting.ReportBook )instanceReportSource.ReportDocument;
//Telerik.Reporting.ReportBook reportb = (Telerik.Reporting.ReportBook)this.ReportViewer1.Report;
Telerik.Reporting.TextBox txt = reportb.Reports[0].Items.Find(
"textBox6"
,
true
)[0]
as
Telerik.Reporting.TextBox;
}
All the best,
Hrisi
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 >