Telerik Forums
Reporting Forum
1 answer
103 views
Is there an option for a slider or something within the reportviewer that shows all the pages but at thumbnails, that once clicked it will jump to that page? In another control we were using it had this option, so I wanted to know if Telerik's reporting tool has this as well or at least a way to emulate it with some other control. Like using a ListBox or something
Stef
Telerik team
 answered on 21 May 2013
1 answer
114 views
Hello,

My company just purchased a bunch of Telerik controls. We noticed there was a reporting control so we wanted to take a look at it. Currently we are using Active Reports for all our reports. I was asked to look into what the Telerik Reporting could do for us. I wanted to create a simple report with a few text boxes and a subreport to show data. I am having a hard time though getting data to show in a sub report. I have to set all the report data in a usercontrol file. Since the report would be dynamically filled, I have to reference each control and set the data source to whatever I need. I call my PrepareReport() function to load the data into the report and then stream it. I am able to access my textboxes and set their values and those show fine.The datset below returns 4 records but nothing shows in the subreport when I run it. What am I missing? Any help would be greatly appreciated. I have searched through this forum and google and can't seem to find a solution for what I want to do. Thanks!
private void PrepareReport(Telerik.Reporting.Report rpt)
{
    Telerik.Reporting.DetailSection detail = (Telerik.Reporting.DetailSection)rpt.Items["detail"];
 
    Telerik.Reporting.TextBox txt = (Telerik.Reporting.TextBox)detail.Items["txtDNIdValue"];
    txt.Value = "11111";
 
    Telerik.Reporting.SubReport subRpt = (Telerik.Reporting.SubReport)detail.Items["subReport1"];
 
    DataSet ds = new DataSet();
    ds = FunctionToFillDataSet();
 
    subRpt.Report.DataSource = ds;
}

Zack

 

 

 

Zack
Top achievements
Rank 1
 answered on 20 May 2013
1 answer
70 views
I have a report with a grouping based on parameter X.  In addition to this grouping, the report will page break after each grouping, so only one value of X will be on a page.  I have a footer in the pageFooter section with the current time and page number, and I want to put the X parameter into the footer.

The X parameter is being put into the footer but only the first instance.  For example, if the X values I have are A, B, C, I have a page for A, B, C but the footer always says A.

My page break occurs after the groupFooterSection for X.

What can I do to get around this problem?  Thanks.
IvanY
Telerik team
 answered on 20 May 2013
1 answer
151 views
Exporting to Excel takes a long time and I would like to display a message like "Exporting.... Please wait" so the user does not think the web page is frozen. The ReportViewer already has a "Generating Report" message so I assumed it would have a message for exporting. I tried putting the ReportViewer in a RadAjaxPanel and setting a RadAjaxLoadingPanel but no spinning wheel appeared.
 
I am using the latest Telerik Reporting and .Net 4 Framework. Any ideas?
Elian
Telerik team
 answered on 20 May 2013
0 answers
48 views

I want to make statements, in ReportViewer shows these controls or label, but these controls or label is hidden, not printing.

Report provides these features, or attribute set?

thank you

Kim
Top achievements
Rank 1
 asked on 20 May 2013
1 answer
207 views
I'm using Telerik reports in an asp.net MVC project.

A report I'm trying to generate is failing before it gets started, in the [HttpPost] ActionResult in the Controller; I reckon because "if 
(ModelState.IsValid)" is returning false.

I didn't know what IsValid was; on investigation, I see that it is defined in System.Web.Mvc.ModelStateDictionary

So what are the causes of a ModelStateDictionary being invalid? What should I examine or verify?
Stef
Telerik team
 answered on 18 May 2013
1 answer
71 views
Hi All - Im looking at the KB article: The expression contains undefined function call MyUserFunction() error

http://www.telerik.com/support/kb/reporting/designing-reports/the-expression-contains-undefined-function-call-myuserfunction-error.aspx

excerpt ...

PROBLEM
The following error is thrown when running the report: #ERROR# The expression contains undefined function call MyUserFunction()

SOLUTION

This error can occur in any of these three cases:
  1. The class library has not been rebuilt and thus the function does not yet exist.
  2. Using the function with wrong number/type of parameters. The passed fields must match the function signature you've defined originally.
  3. A field specified as function argument is null. Make sure that such cases are handled in the user function.

In my case I think its #3. 

I have a report that uses date ranges to filter data.  if a user select a date range that results in zero records, I get the undefined user function error.  I assume because of the nulls.

#3 above mentions "Make sure that such cases are handled in the user function"  by this assume Telerik means use something to the effect of  ..

If (MyParam==null) {return 0;)

I tried this and still get the error, so I must be doing something wrong.

Could someone please test this and report back?

generate a report with a simple UDF.  pass a null dataset to the report.  Do you get the same error? 



Stef
Telerik team
 answered on 18 May 2013
2 answers
689 views
I got the following error on report load, what should I do?


An error has occurred during xml serialization. The xml serializer cannot resolve type with name: Report
at Telerik.Reporting.Xml.ObjectXmlReader.ReadXmlElement(String name) in c: emp eporting@RBuild-24145Reporting_BuildSourceCodeTelerik.Reporting.XmlObjectXmlReader.cs:line 449
at Telerik.Reporting.Xml.ObjectXmlReader.Deserialize() in c: emp eporting@RBuild-24145Reporting_BuildSourceCodeTelerik.Reporting.XmlObjectXmlReader.cs:line 24
at Telerik.Reporting.Xml.XmlSerializer.Deserialize(XmlReader reader) in c: emp eporting@RBuild-24145Reporting_BuildSourceCodeTelerik.Reporting.XmlXmlSerializer.cs:line 86
at Telerik.Reporting.Xml.XmlSerializer.Deserialize(String fileName) in c: emp eporting@RBuild-24145Reporting_BuildSourceCodeTelerik.Reporting.XmlXmlSerializer.cs:line 76
at Telerik.Reporting.XmlSerialization.ReportXmlSerializer.Deserialize(String intputUri) in c: emp eporting@RBuild-24145Reporting_BuildSourceCodeTelerik.Reporting.XmlSerializationReportXmlSerializer.cs:line 191
at Telerik.Reporting.Processing.UriReportDocumentResolver.Resolve(IReportDocumentResolverContext context, UriReportSource rs) in c: emp eporting@RBuild-24145Reporting_BuildSourceCodeTelerik.Reporting.ProcessingReportDocumentResolver.cs:line 217
at Telerik.Reporting.Processing.ReportDocumentResolver`1.Telerik.Reporting.Processing.IReportDocumentResolver.Resolve(IReportDocumentResolverContext context, ReportSource rs, Boolean loadParameters) in c: emp eporting@RBuild-24145Reporting_BuildSourceCodeTelerik.Reporting.ProcessingReportDocumentResolver.cs:line 164
at Telerik.Reporting.Processing.ReportDocumentResolver.<>c__DisplayClass1.<Resolve>b__0(IReportDocumentResolver r) in c: emp eporting@RBuild-24145Reporting_BuildSourceCodeTelerik.Reporting.ProcessingReportDocumentResolver.cs:line 143
at Telerik.Reporting.Processing.ReportDocumentResolver.Bind[T](ReportSource source, Func`2 func) in c: emp eporting@RBuild-24145Reporting_BuildSourceCodeTelerik.Reporting.ProcessingReportDocumentResolver.cs:line 156
at Telerik.Reporting.Processing.ReportDocumentResolver.Resolve(IReportDocumentResolverContext context, ReportSource source, Boolean loadParameters) in c: emp eporting@RBuild-24145Reporting_BuildSourceCodeTelerik.Reporting.ProcessingReportDocumentResolver.cs:line 143
at Telerik.ReportViewer.WebForms.ParametersPage.ResolveReportDocument(ReportSource reportSource) in c: emp eporting@RBuild-24145Reporting_BuildSourceCodeTelerik.ReportViewer.WebFormsParametersPage.cs:line 142
at Telerik.ReportViewer.WebForms.ParametersPage.get_ReportDocument() in c: emp eporting@RBuild-24145Reporting_BuildSourceCodeTelerik.ReportViewer.WebFormsParametersPage.cs:line 55
at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager() in c: emp eporting@RBuild-24145Reporting_BuildSourceCodeTelerik.ReportViewer.WebFormsParametersPage.cs:line 85
at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls() in c: emp eporting@RBuild-24145Reporting_BuildSourceCodeTelerik.ReportViewer.WebFormsParametersPage.cs:line 199
at System.Web.UI.Control.EnsureChildControls()
at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e) in c: emp eporting@RBuild-24145Reporting_BuildSourceCodeTelerik.ReportViewer.WebFormsParametersPage.cs:line 151
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Yongke
Top achievements
Rank 1
 answered on 17 May 2013
1 answer
365 views
Hi,

I am new to Telerik reporting and i am trying to access report using URL and show is ReportViewer1 in  aspx page.

But when i run the application i get following error. Please let me know the issues.

I am using 7.0.13.426 

 

 

 

 


ReportSource

 

 

reportSource = new UriReportSource {Uri = ResolveClientUrl("http://xxxx/Report/PerReportsViewer.aspx?ID=2585")};

 

ReportViewer1.ReportSource = reportSource;



For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlReader.MoveToContent()
at Telerik.Reporting.Xml.ObjectXmlReader.Deserialize()
at Telerik.Reporting.Xml.XmlSerializer.Deserialize(XmlReader reader)
at Telerik.Reporting.Xml.XmlSerializer.Deserialize(String fileName)
at Telerik.Reporting.XmlSerialization.ReportXmlSerializer.Deserialize(String intputUri)
at Telerik.Reporting.Processing.UriReportDocumentResolver.Resolve(IReportDocumentResolverContext context, UriReportSource rs)
at Telerik.Reporting.Processing.ReportDocumentResolver`1.Telerik.Reporting.Processing.IReportDocumentResolver.Resolve(IReportDocumentResolverContext context, ReportSource rs, Boolean loadParameters)
at Telerik.Reporting.Processing.ReportDocumentResolver.<>c__DisplayClass1.<Resolve>b__0(IReportDocumentResolver r)
at Telerik.Reporting.Processing.ReportDocumentResolver.Bind[T](ReportSource source, Func`2 func)
at Telerik.Reporting.Processing.ReportDocumentResolver.Resolve(IReportDocumentResolverContext context, ReportSource source, Boolean loadParameters)
at Telerik.ReportViewer.WebForms.ParametersPage.ResolveReportDocument(ReportSource reportSource)
at Telerik.ReportViewer.WebForms.ParametersPage.get_ReportDocument()
at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager()
at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Unknown
Top achievements
Rank 1
 answered on 17 May 2013
1 answer
201 views
All of my reports are currently in Active Reports 6.0 and I'd like to convert them to Telerik but when I get to that part of the wizard active reports doesn't even show up as an option.  I've tried the redirect in the devenv.exe.config but that didn't help.  From what I've been able to gather from a couple of other posts there is no converter for AR 6 but I thought I should at least have it as an option, even if it doesn't really work.  Has anyone else run into this?
IvanY
Telerik team
 answered on 17 May 2013
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?