Telerik Forums
Reporting Forum
8 answers
768 views
Hi can anyone help me on this pls.

i am using telerik reporting "Telerik Reporting Q2 2010" in visual studio 2008. and (in add newitem i choose the telerik) and create a file called Report1.vb.

when i try to create sql datasource in properties by clicking "report parameters -> new sqldatasouurce -> new connection" it displaying the messge box "Object reference not set to an instance of an object.".

but it working fine in visual studio 2005. can create datasource.

not working in  visual studio 2008.

can pls help me :(
Jaco Hamilton-Attwell
Top achievements
Rank 1
 answered on 20 Aug 2012
3 answers
160 views
Hi

I added a new report to an already existing Report library  and strangely I am getting this error:

Could not load file or assembly 'Telerik.Reporting.Design.Interfaces, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The system cannot find the file specified.

Can you please help me figure this issue..
Peter
Telerik team
 answered on 20 Aug 2012
9 answers
240 views
Hello Forum,
I upgraded my free trial Telerik Reporting installation to Licensed Q3 installation. When I upgraded a VS2010 web project using Telerik Upgrade wizard, I've started getting the Error: "Image Format Not Supported: Emf" in HTML Preview and in Report Viewer in ASPX page.
I tried to change the Image format property of the individual chart objects on the report to all the other formats listed, however that seems to be not accepting any other format than Emf.

Any suggestion to resolve this problem?
Satish
Top achievements
Rank 1
 answered on 20 Aug 2012
2 answers
339 views
I'm using Q1 2012 for an MVC 3 Application where a report is generated, attached to an email and sent.  The parameters are applied from an object model containing all report parameters and strings representing each value.  When applying the value in plain text, the report runs and attaches to the email as it should
EX.
Report.ReportParameter.Value[0] = "Value"

But when doing the same from the model, I receive an inner exception for an invalid parameter

Working Code:
rpt.ReportParameters[4].Value = Reporting.GetParametersObject("VAL1; VAL2");

But when the code is changed to this:
rpt.ReportParameters[4].Value = Reporting.GetParametersObject(email.EmailReportParameters.ToString());

I receive and inner exception error and the parameter value returns to null.

The GetParametersObject converts a string to an Object[].

The debugger shows the same values in both cases as type {string[]}

Model: (I've also tried an Object[] for EmailReportParameters with the same result)
public class EmailReport
    {
        public string EmailAddress { get; set; }
        public string EmailAttachmentExtension { get; set; }
        public string EmailAttachName { get; set; }
        public string EmailSubject { get; set; }
        public string EmailBody { get; set; }
        public String[] EmailReportParameters { get; set; }
    }

Single value parameters are working properly:
rpt.ReportParameters[0].Value = email.EmailReportParameters[0];

Error Detail:
InnerException   {"Invalid value of report parameter 'LineOfBusiness1'."}
 
   at Telerik.Reporting.Processing.Report.ResolveData()
   at Telerik.Reporting.Processing.Report.ProcessItem()
   at Telerik.Reporting.Processing.ReportItemBase.Process(DataMember data)
   at Telerik.Reporting.Processing.Report.Process(DataMember data, DataItemState state, Boolean processItemActions, Boolean documentMapEnabled)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(IReportDocument reportDocument, IDictionary processingContext)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, IReportDocument reportDocument, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo)
   at compucom.TrackIT.Reports.Controllers.EmailReportController.SendEmailReport(EmailReport email) in C:\Users\tk83673\Documents\Projects\ITOProdSolutions\TrackIT\USBank\compucom.TrackIT.Reports\Controllers\EmailReportController.cs:line 76
   at lambda_method(Closure , ControllerBase , Object[] )
   at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
   at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   at System.Web.Mvc.ControllerActionInvoker.<>c__DisplayClass15.<InvokeActionMethodWithFilters>b__12()
   at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation)
Thomas
Top achievements
Rank 1
 answered on 17 Aug 2012
1 answer
70 views

Howdy,

So, like the title says - I have a simple report which uses the Report Header section to display a graphic. The header also has a border around it, as does the detail section. In design as well as during runtime it looks good - however, open print preview and it all goes down hill :)

I've attached two screenshot that show the issue. I've seen similar behavior when controls overlap etc - but there is none of that in this report (at least as far as I can tell.)

Regards,

Andreas

IvanY
Telerik team
 answered on 17 Aug 2012
3 answers
128 views
Hello,

I have like 20 reports to create...
But, the first page of the 20 reports are always the same.

Is it possible to do like a "Master page" for the first page ?
Because if one day I have to modify the first page I would like to do it once... And not on each reports.

Thank you

Jean-Yves
Peter
Telerik team
 answered on 17 Aug 2012
10 answers
596 views
Hi,

I am using telerik for reporting in my web application. I have 2 projects
1. ReportLibrary
2. Web application

I have my connection string in web.config file of my web application project.
As I have used reporing wizard to create my reports.....it saved new connection string in app.config file.
I want to use the same connection string which is there in the web.config file.

So How do we do that?
any answer would be appreciated.
Peter
Telerik team
 answered on 17 Aug 2012
2 answers
136 views
I have been using Reporting Q2 2011 in VS 2010 and am wanting upgrade to the newest version. Previously I would download the msi, install it and VS would ask if I wanted to upgrade.

This time I needed to use the TelerikControlPanel to get the version installed. However, VS did not offer to auto upgrade and when I selected the upgrade wizard from VS I got the error message "There are no references to upgrade in the current solution!"

I found the instructions for the manual upgrade here http://www.telerik.com/support/kb/reporting/general/upgrading-to-a-newer-version-of-telerik-reporting.aspx but before proceeding want to see if I was missing something obvious.

Thanks,

Matthew
Tomica
Top achievements
Rank 2
 answered on 17 Aug 2012
2 answers
276 views
Hi... I'm pretty new to reporting and I need some help solving a problem..

Firstly, my datasource is a collection of items returned from a web service.  The items can be parents of other items.  I need to create a report that shows all items where IsKey is true.  Then, for each item below that, I need to show the children.  The problem is that since each child can in turn have children, the report needs to be recursive.  My subreport has a parameter and filter on the ID.  My first idea was to add a reference to the same subreport but it says I can't because of circular references.  Is there a way to do this?

Here is an example class

pubic class foo
{
    public Guid ID;
    public String Name;
    public Boolean IsKey;
     
    public List<foo> Children;
}

My report needs to look something like this (where the level can be infinite):

Report Name

--------------



Item.Name
---Item1.Child1.Name
   ---Item1.Child1.Child1.Name
       ---Item1.Child2.Name
       ---Item1.Child3.Name

---Item2.Name
Barry
Top achievements
Rank 1
 answered on 16 Aug 2012
1 answer
99 views
My report runs fine in the viewer and you can still export it from the viewer, but programatically exporting the report now fails after going from 2012 Q1 to Q2 (6.0.12.215 to 6.1.12.611).

Code:
Telerik.Reporting.Report rpt = new TED.Web.Defender.DReport { DataSource = reportData };
Telerik.Reporting.Processing.ReportProcessor reportProcessor = new Telerik.Reporting.Processing.ReportProcessor();
Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
instanceReportSource.ReportDocument = rpt;
Telerik.Reporting.Processing.RenderingResult result = reportProcessor.RenderReport("PDF", instanceReportSource, null);

Error:

{"Object reference not set to an instance of an object."} 

Stack trace:

   at Telerik.Reporting.Processing.ExternalStyleSheetAdapter.Fill(ICollection`1 styleRules)
   at Telerik.Reporting.Processing.Report.LoadExternalStyleRules()
   at Telerik.Reporting.Processing.Report.InitializeItem()
   at Telerik.Reporting.Processing.ItemFactory.CreateItem(Object itemDef)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(ReportSource reportSource, IDictionary processingContext)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(ReportSource reportSource, Hashtable deviceInfo, Hashtable renderingContext)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, ReportSource reportSource, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, ReportSource reportSource, Hashtable deviceInfo, Hashtable renderingContext, CreateStream createStreamCallback)
   at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, ReportSource reportSource, Hashtable deviceInfo)
   at Defender_DefenderReporting.ExportReport() in c:\dev\pronet\TedProjects\Trunk\TED\TED.Web\Defender\DefenderReporting.aspx.cs:line 423
   at Defender_DefenderReporting.cmdExportReport_Click(Object sender, EventArgs e) in c:\dev\pronet\TedProjects\Trunk\TED\TED.Web\Defender\DefenderReporting.aspx.cs:line 466
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Peter
Telerik team
 answered on 16 Aug 2012
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?