Telerik Forums
Reporting Forum
25 answers
781 views
I recently loaded and installed ALL of the Q2 2012 tools (premium subscription) and am now experiencing crashes all the time when designing reports.  Specifically the last 3 times it crashed this hour I was editing the Conditional formatting on the detail line of a report.  My OS is Windows 7 running on 64 bit and am using Visual Studio Premium and in this case Telerik Reporting 6.1.12.820 (Q2 2012).

I am just wondering if anyone else is having this issue.  The only real difference between this and my previous install is the addition of the JustCode plugin.

Doug

Chris
Top achievements
Rank 1
 answered on 03 Sep 2013
5 answers
651 views
I have created a report in Visual Studio 2010. The Detail Section is a mixture of HtmlTextbox and Textbox items inside Panels to display the data.

Design View
In design view the Details section is made up of 5 Panels set to the width of the header items. Several HTML textboxes and texboxes were added in order to display the desired information. Some of the data does wrap to the next line. That's the reason for putting them all in Panels was because the data needs to stay tight to the grouped columns. I have tried to remove the panels and display just the data but I get the same issue.

Preview/Export/Etc
When viewing the report the data stays tight as expected. The attached screen shot I added a blue border to the detail section panels to show that the data does indeed stay constricted to the panel and the panels do not grow yet for some reason there is extra space causing the page to be wider than expected. If I change either the Port panel or the Status panel to be visible = false it does not have this extra space.

I cannot for the life of me figure out why it is widening the page like that. This is a huge issue because when you export to PDF it causes extra pages to be displayed in the report that contain nothing.

Justin
Top achievements
Rank 1
 answered on 02 Sep 2013
1 answer
37 views
I am having problems locating the x-axis labelplacement step , so I can step labels every 4th item etc.

Any assistance would be great.
Thanks

Jason
Peter
Telerik team
 answered on 02 Sep 2013
1 answer
189 views
Hi there,

First let me preface this that I using Telerik Reporting Q2 2013 Internal Build v7.1.13.726.
When I try to instantiate run my report against an object data source that is tied to a repository pattern that is backed by code-first entity framework (which is the closest I've come to getting this to work) I receive this error. Any ideas where I should look to solve this error.
My app.config in the reporting project has the correct connection string defined for the DbContext so I'm a little confused.



Stef
Telerik team
 answered on 02 Sep 2013
1 answer
146 views
We are using CRM 4.0 which requires IE to be run in compatibility mode.  If I put the meta tag

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

On my report viewer page then the reports will show up.  If that isn't there, then the page is empty except for the toolbar.  Problem is with that meta tag in place when the user navigates back to another CRM page then they don't display properly.

So, is there a way to turn that back off when a user leaves the reports page, or what modifications can I do so the report viewer will display correctly even if compatibility mode is enabled?

Thanks,
Adam


Edit:
Adding this to the windows.onload allows the reports to show.  Not sure if this is the best resolution, but it does work for now.
document.getElementById('ReportViewer1ReportFrame').style.width = '1000px';

Adam
Peter
Telerik team
 answered on 02 Sep 2013
1 answer
82 views
I'm trying to build a report programmatically due to the complexity and dynamic nature of the requirement I am faced with.
The best way I can think is to have one 'shell' report that composes many different child reports.

However when I just try to do a light version of the above with a simple (not data-bound) child report that just prints 'hello world!' I get nothing rendered out. When I run the Child report on it's own I receive the expected results.

Below is my code for the shell report

private Telerik.Reporting.Report Build()
{
    Telerik.Reporting.Report mainReport = new Telerik.Reporting.Report();
    Telerik.Reporting.DetailSection detail = new Telerik.Reporting.DetailSection();
 
    mainReport.Items.Add(detail);
 
    Unit unitX = Unit.Inch(0.1);
    Unit unitY = Unit.Inch(0.1);
    SizeU size = new SizeU(Unit.Inch(1), Unit.Inch(0.5));
 
    List<Telerik.Reporting.Report> childrenReports = new List<Telerik.Reporting.Report>();
 
    ExecutiveSummarySection executiveSummary = new ExecutiveSummarySection();
    childrenReports.Add(executiveSummary);
     
    foreach (Telerik.Reporting.Report child in childrenReports)
    {
        Telerik.Reporting.SubReport sub = new Telerik.Reporting.SubReport
        {
            Location = new PointU(unitX, unitY),
            Size = size
        };
        unitY = unitY.Add(Unit.Inch(1));
        Telerik.Reporting.InstanceReportSource childInstanceReportSource = new InstanceReportSource();
        childInstanceReportSource.ReportDocument = child;
        sub.ReportSource = childInstanceReportSource;
        detail.Items.Add(sub);
    }
    detail.Height = Unit.Inch(childrenReports.Count + 2D);
    return mainReport;
    //return executiveSummary;
}


and the 'ExecutiveSumarySection' report:

using AGP.Data.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Telerik.Reporting;
using Telerik.Reporting.Drawing;
 
namespace AGP.Reports
{
    public class ExecutiveSummarySection : Report
    {
 
        public ExecutiveSummarySection()
        {
            InitializeComponent();
            //DataBindControls();
        }
 
        private void DataBindControls()
        {
             //going to data bind later to EF5 backed repository
            //ModelContextUnitOfWork uow = new ModelContextUnitOfWork();
            //DocumentEFRepository docRepo = new DocumentEFRepository(uow);
 
            //this.DataSource = docRepo.All.ToList();
        }
 
        #region Component Designer generated code
        /// <summary>
        /// Required method for telerik Reporting designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            Telerik.Reporting.Drawing.StyleRule styleRule1 = new Telerik.Reporting.Drawing.StyleRule();
            this.pageHeaderSection1 = new Telerik.Reporting.PageHeaderSection();
            this.detail = new Telerik.Reporting.DetailSection();
            this.pageFooterSection1 = new Telerik.Reporting.PageFooterSection();
            this.panel1 = new Telerik.Reporting.Panel();
            this.textBox1 = new Telerik.Reporting.TextBox();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            //
            // pageHeaderSection1
            //
            this.pageHeaderSection1.Height = Telerik.Reporting.Drawing.Unit.Inch(2D);
            this.pageHeaderSection1.Name = "pageHeaderSection1";
            //
            // detail
            //
            this.detail.Height = Telerik.Reporting.Drawing.Unit.Inch(2.1000001430511475D);
            this.detail.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.textBox1});
            this.detail.Name = "detail";
            //
            // pageFooterSection1
            //
            this.pageFooterSection1.Height = Telerik.Reporting.Drawing.Unit.Inch(2D);
            this.pageFooterSection1.Name = "pageFooterSection1";
            //
            // panel1
            //
            this.panel1.Name = "panel1";
            this.panel1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(2D), Telerik.Reporting.Drawing.Unit.Inch(1D));
            //
            // textBox1
            //
            this.textBox1.Location = new Telerik.Reporting.Drawing.PointU(Telerik.Reporting.Drawing.Unit.Inch(0D), Telerik.Reporting.Drawing.Unit.Inch(0D));
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(1.2000001668930054D), Telerik.Reporting.Drawing.Unit.Inch(0.40000024437904358D));
            this.textBox1.Value = "Hello World!";
            //
            // ExecutiveSummarySection
            //
            this.Items.AddRange(new Telerik.Reporting.ReportItemBase[] {
            this.pageHeaderSection1,
            this.detail,
            this.pageFooterSection1});
            this.Name = "Report1";
            this.PageSettings.Margins = new Telerik.Reporting.Drawing.MarginsU(Telerik.Reporting.Drawing.Unit.Inch(1D), Telerik.Reporting.Drawing.Unit.Inch(1D), Telerik.Reporting.Drawing.Unit.Inch(1D), Telerik.Reporting.Drawing.Unit.Inch(1D));
            this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter;
            this.Style.BackgroundColor = System.Drawing.Color.White;
            styleRule1.Selectors.AddRange(new Telerik.Reporting.Drawing.ISelector[] {
            new Telerik.Reporting.Drawing.TypeSelector(typeof(Telerik.Reporting.TextItemBase)),
            new Telerik.Reporting.Drawing.TypeSelector(typeof(Telerik.Reporting.HtmlTextBox))});
            styleRule1.Style.Padding.Left = Telerik.Reporting.Drawing.Unit.Point(2D);
            styleRule1.Style.Padding.Right = Telerik.Reporting.Drawing.Unit.Point(2D);
            this.StyleSheet.AddRange(new Telerik.Reporting.Drawing.StyleRule[] {
            styleRule1});
            this.Width = Telerik.Reporting.Drawing.Unit.Inch(6D);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
 
        }
        #endregion
 
        private Telerik.Reporting.PageHeaderSection pageHeaderSection1;
        private Telerik.Reporting.DetailSection detail;
        private Panel panel1;
        private TextBox textBox1;
        private Telerik.Reporting.PageFooterSection pageFooterSection1;
    }
}


Not totally sure what I'm doing wrong here but I was following many similar examples provided in the forums by Telerik Reporting team on doing this type of report.
Peter
Telerik team
 answered on 02 Sep 2013
1 answer
98 views
Hi,

I'm trying to create a report, with an ObjectDataSource that has a couple Nullable<Datetime> fields. I'm attempting to use these in a textbox.
Here's an example of the sort of expression I'm using:

This report covers the period from {IIf(Fields.ReportConfiguration.StartDate is null, "the beginning of time", Fields.ReportConfiguration.StartDate.Date.ToString("D"))} to {IIf(Fields.ReportConfiguration.EndDate is null, "the end of time", Fields.ReportConfiguration.EndDate.Date.ToString("D"))}.

Both StartDate and EndDate are of type Nullable<DateTime>. If they have both have a value then it works correctly, but if either of them are null then I get an "Object reference not set to an instance of an object" error. Should this work, and if not, how do I do it?

I'm using 2013 Q2 SP1.

Thanks,

Richard
Squall
Top achievements
Rank 1
 answered on 02 Sep 2013
1 answer
75 views
Hello,
I am using Reporting Q2 2011 and working with the Invoice example. The PageExec values work correctly and are visible when viewed in Preview but are not visible when viewed in HTML Preview. I am using IE 9.

Thanks,
Peter
Telerik team
 answered on 02 Sep 2013
1 answer
236 views
I'm attempting to set up my report like the following:

Parent Group
Child Group 1
Items
Child Group 2 Items Child Group 3 So basically I want parent group to have multiple children without nesting them, so how can I setup a group with multiple parallel children without using "Subreport"? Are there any easy ways to achieve that in the designer?
Squall
Top achievements
Rank 1
 answered on 30 Aug 2013
5 answers
236 views

"Microsoft JScript runtime error: Object expected":  Here's the first line that is causing the error:

ToolbarImageButton(

'ReportViewer1_ReportToolbar_NavGr_FirstPage_Button','FirstPage',false,'NormalButton','DisabledButton','PushButton',false);

 

 I'm using 2009 Q1.  This is a .net 3.5 web application.  I tried reinstalling Telerik Reporting and I still get the error.  Any ideas?

Stef
Telerik team
 answered on 30 Aug 2013
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?