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

Borders in Telerik reporting Panel

6 Answers 402 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeffrey
Top achievements
Rank 1
Jeffrey asked on 09 Jul 2012, 05:19 PM
I am unable to use panels in my report simply because the right side border of my panel is not visible. I have tried playing with the border size and setting the border style to solid bu the right side of the panel still stays borderless. Can someone please help out?


Thanks. 

6 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 10 Jul 2012, 06:31 AM
Hello Jeffrey,

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 >

0
Jeffrey
Top achievements
Rank 1
answered on 10 Jul 2012, 10:55 AM
Hello Steve, thanks for your response.

  1. I am using a version prior to to Q3 2011.
  2. 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.
  3. 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.

0
Steve
Telerik team
answered on 12 Jul 2012, 04:12 PM
Hi Jeffrey,

Up to your questions:
  1. 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.
  2. 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;
        }
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 >

0
Jeffrey
Top achievements
Rank 1
answered on 16 Jul 2012, 10:33 AM
Hello Steve,

I very much appreciate your feedback.

Best,
Jeff
0
Jeffrey
Top achievements
Rank 1
answered on 16 Jul 2012, 03:15 PM
Hello Steve,

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
0
Hrisi
Telerik team
answered on 19 Jul 2012, 08:53 AM
Hi,

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 >

Tags
General Discussions
Asked by
Jeffrey
Top achievements
Rank 1
Answers by
Steve
Telerik team
Jeffrey
Top achievements
Rank 1
Hrisi
Telerik team
Share this question
or