Telerik Forums
Reporting Forum
7 answers
980 views
Hello,

When i try to search by passing parameter values to Report, then if there is no result for any particular criteria.
then it gives error ,
              Error : Object Reference not set to an instance of an object.

Please help me to sort out the problem.
What should i do if there are no records to be displayed in specific search Criteria ?.

Thanks.
Steve
Telerik team
 answered on 26 Feb 2009
1 answer
270 views
Hi, I am running into this problem:

if i use the Telerik.Reporting.checkbox, i can set the value to true or false, then the checkbox will show its value.  however, i am running a loop through the XML to find checkbox value.  however, the checkbox is not shown being checked. 

here is my code:  what really tricks me is in the ele is Telerik.Reporting.Processing.CheckBox please let me know where i did wrong. 

 Telerik.Reporting.Processing.DetailSection processingDetail = (Telerik.Reporting.Processing.DetailSection)sender;
 foreach (Telerik.Reporting.Processing.ReportItem item in processingDetail.Items)
 {
     if (item is Telerik.Reporting.Processing.Panel)
     {
         Telerik.Reporting.Processing.Panel pan = (Telerik.Reporting.Processing.Panel)item;
         foreach (Telerik.Reporting.Processing.ProcessingElement ele in pan.ChildElements)
         {
             if (ele is Telerik.Reporting.Processing.TextBox)
             {
                 if (ele.Name == node.Attributes["Flag"].Value.ToString().Replace("$#", "").Replace("#$", ""))
                 {
                     Telerik.Reporting.Processing.TextBox txt = (Telerik.Reporting.Processing.TextBox)ele;
                     txt.Value = node.InnerText;
                 }
             }
             if (ele is Telerik.Reporting.Processing.CheckBox)
             {
                 if (ele.Name == node.Attributes["Flag"].Value.ToString().Replace("$#", "").Replace("#$", ""))
                 {
                     Telerik.Reporting.Processing.CheckBox chk = (Telerik.Reporting.Processing.CheckBox)ele;
                     if (node.InnerText == "X")
                     {
                         chk.Value = System.Windows.Forms.CheckState.Checked;
                     }
                     else
                     {
                         chk.Value = System.Windows.Forms.CheckState.Unchecked;
                     }
                 }
             }
         }
     }

 }

Many Thanks

Steve
Telerik team
 answered on 26 Feb 2009
1 answer
181 views

Dear Community,

I have recently encountered a problem when trying to work with hide/show of report content. So shortly draft out my problem, I have a report with Master/Detail, on the master I have the following code in my report's cs file

bool bShow; 
private void subReport_ItemDataBound(object sender, System.EventArgs e)

{

    bShow = (

bool) this.ReportParameters["ShowDetails"].Value;

 

 

    (sender

 

 

 

as Telerik.Reporting.Processing.SubReport).Visible = bShow; 

 

 

 

 


    //More content will be added here...

 

 

}

This works flawless and my excel export works perfectly. If I add the following line into the method

 

    masterDetail_Total.ShowDetailSection(bShow);

where the method ShowDetailSection(bool bShow) is defined in the detail report of the master report, so that the complete method will yeild

bool bShow; 
private void subReport_ItemDataBound(object sender, System.EventArgs e)

{

    bShow = (

 

bool) this.ReportParameters["ShowDetails"].Value;  

 

 

    (sender

 

as Telerik.Reporting.Processing.SubReport).Visible = bShow;

 

 

 

    // Known Issue: 'Visible = false' will cause excel export to throw an StackOverflow exception

 

 

 

 

   masterDetail_Total.ShowDetailSection(bShow);
}

the reportviewer will throw an StackOverflow exception whenever the report parameter "ShowDetails" = false.

Any idea on how to solve this problem?

Best regards,
S. Engel

 

 

 

 

 

 

 

 

 

Steve
Telerik team
 answered on 26 Feb 2009
5 answers
244 views
Hello,
          I want to change the PageIndex of ReportViewer when the Page is being Post_back.
          When I bind new data then, if i am viewing the 5th page & new data contains records for only
          4 pages,
                  then it generates an Error : Unspecified error while processing the report request.

          Please reply me how do i reset the page index of ReportViewer to its default when i bind data again
          to ReportViewer.
       

Thanks,
Jaspreet
Steve
Telerik team
 answered on 26 Feb 2009
1 answer
194 views

 Hello,

Do you plan to developpe Telerik Reporting  for WPF? If yes, in how many time it will be ready?

If no, do you have a sample for integrate a Telerik Reporting  .net in Wpf Application?

 

Thank you for your answer

Steve
Telerik team
 answered on 25 Feb 2009
1 answer
272 views
Hi,

I have designed telerik report file, and i want to call that report file in aspx page telerik report viewer control.

Any one help me....
Steve
Telerik team
 answered on 25 Feb 2009
1 answer
87 views

Could not find any resources appropriate for the specified culture or the neutral culture.  Make sure "Sample.resources" was correctly embedded or linked into assembly "App_Code.plkazgld" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Steve
Telerik team
 answered on 25 Feb 2009
2 answers
82 views
Hi,

I am testing the evaluation version of Telerik Reporting and I have a problem with creating report in a web sulution. I am using VS2008 standard and if i create a report in a windows project all works fine, when creating in a web project an using the report wizard the dataset is created but the tableadaptor is not linked to the report.
Dave
Top achievements
Rank 1
 answered on 24 Feb 2009
1 answer
251 views
Hi,
I am working web application oriented and i used telerik reporting tool. i want to add the image in my report page..

Any one help me.... with code......
Steve
Telerik team
 answered on 24 Feb 2009
1 answer
76 views
Cannot create an object of type 'Telerik.Reporting.Report' from its string representation 'Telerik_Test.AYSO_Test, Telerik_Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' for the 'Report' property.
Steve
Telerik team
 answered on 24 Feb 2009
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?