Telerik Forums
Reporting Forum
1 answer
138 views
I have a report thathas two groupings on the main report.  I want to put a cross tab in the detail section and have it create the cross table for the data that matches the groupings.  How do I bind the cross tabe table to the groupings on the reports?
Eric Klein
Top achievements
Rank 1
 answered on 02 May 2012
5 answers
833 views
Hi,

I just tried to add the Silverlight report viewer to my application but it fails to load the report.  Originally I tried to use the latest build but it failed completely due to a parse error which I believe was due to the fact that I am currently using version 209.3.1314.1030 version of the controls.  I am not yet in a position to upgrade them to the latest build due to some breaking changes.  I then went for an older version of the reporting tools, in this case 3.2.9.1211 in which the control loads correctly but the report doesn't.

The error I get in the report viewer is as follows...

"Error: Unable to cast object of type 'ReportsLibrary.UsageReport' to type 'Telerik.Reporting.IReportDocument'.

I followed the videos on how to integrate the reports but since this is my first attempt I am at a loss as to what to next.

Cheers,
Clint
Macloud
Top achievements
Rank 1
 answered on 02 May 2012
2 answers
115 views
Advice please.
I created a chart and pribindil. Y-axis indicated the binding property of the COUNTand have DATALABELSCOLUMN NAME. And the legend is not a list of the collection. 

http://i50.tinypic.com/2cxi635.png 

chart1.DataSource = linqToSQL.TableItems.GroupBy(g => g.ColumnInt)
.Select(s =>
new Item { count = s.Count(), name = s.First().Name })
.OrderByDescending(o => o.count).Take(10);

class Item 
{
    public int count { get; set; }
    public string name { get; set; }
}
That is, shows the schedule is correct, but the description of the legend is not correct. 
With respect, thanks 

tableitem
pavel
Top achievements
Rank 1
 answered on 02 May 2012
1 answer
191 views
Hi.  I am using Telerik Q1 2012.  I have a new report which works pulling in a small range of data.  However when I increase the date range of my data, I get the same error message:

"The process cannot access the file C:\Users\uswknp09\AppData\Local\Temp\yadayadayada\Page#157 because it is being used by another process"

As long as I pull less than 157 pages of info, the query completes and displays properly.  If I increase the data volume to where it hits page 157, the query completes, the data is intially displayed, but as the page counter spins through the pages, it stops everytime at page 157 and generates the same error.

I have tried different date ranges in different months, thinking perhaps there was a specific record causing an issue.  The behavior is always the same regardless of the date range selected, so I think this has something to do with Visual Studios or Telerik Reporting, not the data itself.

Can someone shed some light on why this is happening?

Thanks,
Kevin
Steve
Telerik team
 answered on 02 May 2012
3 answers
317 views
Hello,

I have added a pie-chart to my report.  For each "pie-slice", I have added a label that appears just outside the slice.  This works fine.

However, I am unable to add a "connecting-line" from the pie-slice to its label.  Regardless of what code I add (in chart1_NeedDataSource), no LabelConnector appears.  Is there some problem connecting labels to "pie-slices" or am I doing something wrong?

Here is some of the code I use to make the connecting-line appear but nothing helps:

serie.Appearance.LabelAppearance.Visible =
true;
serie.Appearance.LabelAppearance.LabelConnectorStyle.Visible = true;
serie.Appearance.ShowLabels = true;
serie.Appearance.LabelAppearance.LabelConnectorStyle.PenStyle = System.Drawing.Drawing2D.DashStyle.Solid;
serie.Appearance.LabelAppearance.LabelConnectorStyle.Width = 2;

 


Thanks in advance.
Steve
Telerik team
 answered on 02 May 2012
1 answer
111 views
Hi,



We are suddenly experiencing issues when we print reports from silverlight. Both on our internal application and also your sample application:

https://demos.telerik.com/reporting/invoice-report/silverlight-demo.aspx.



We can see that the document is spooling and Windows informs us that the document has been sent to the printer. However the document is never printed. We have tried several computers with multiple printers.



We are using Silverlight  5.0.61118.0 and x64 Windows 7 and Windows Server 2008 R2 operating systems.



Do you have any idea what could be causing this issue?



/Rasmus
Steve
Telerik team
 answered on 02 May 2012
3 answers
155 views
Hi there,

we have this scenario:
Our ReportLibrary uses a Service to call some data from SAP to create a ServiceReport as a BusinessObject which I use to create my Report..
How can I send this ServiceNumber from my ReportViewer to the Report so it can call the ServiceOrder I need to show?

Best Regards
Manfred
Steve
Telerik team
 answered on 02 May 2012
1 answer
102 views
Hi friends,

I am trying to use the following expression
= Count(IIf(Fields.Customer='Daily'),Fields.Customer)   to count the number of records having The field customer as daily...But I am geeting an error..Cna Some one please let em know the right way of Using it?

Thank you
Petio Petkov
Telerik team
 answered on 02 May 2012
9 answers
532 views

Hi Telerik,
 
I've upgraded Q1-2012 from Q3-2011.
We prepare the program tested on the Web, ReportViewer gives an error message.
ReportViewer program is working as a local mode.

We have made many report dll installation.
But ReportViewer program does not work on the Web.
How we can solve.

I'm sending Web.config and error message.

Regards,
Mehmet

Hrisi
Telerik team
 answered on 02 May 2012
1 answer
168 views
Is there a way to enumerate the items; i.e. textboxes, contained in a section of the report, say the LabelsGroupFooter, or a panel contained in a report section?

Thanks

I think I've stumbled upon a means to do this, probably a better way, but the following works:
IEnumerator itemEnumerator = this.pnlTotals.Items.GetEnumerator();
  
while (itemEnumerator.MoveNext())
{
  if (itemEnumerator.Current.GetType() == typeof(Telerik.Reporting.TextBox))
  {
    Telerik.Reporting.TextBox textBox = (Telerik.Reporting.TextBox)itemEnumerator.Current;
  
    // value contains an expression, vs. literal text?
    if (textBox.Value.StartsWith("="))
      textBox.Value = "0";
  }
}

"pnlTotals" is a panel control which sits in the labelsGroupFooter. It has the textboxes which contain the totals from each column of the report. The purpose of this "excercise" is to flush out column totals if there's no data in the report datasource. This is done in the report NeedDataSource event handler.

  // bind the data table to the .DataSource property of the report
 (sender as Telerik.Reporting.Processing.Report).DataSource = this.dtSource;
 // if the query didn't return any rows, hide the groups and the detail section        
 if (this.dtSource.Rows.Count == 0)
 {
   this.gL_ACCT_CODEGroup.Visible = false;
   this.dEPT_CODE_NAMEGroup.Visible = false;
   this.detail.Visible = false;
   IEnumerator itemEnumerator = this.pnlTotals.Items.GetEnumerator();
   while (itemEnumerator.MoveNext())
   {
     if (itemEnumerator.Current.GetType() == typeof(Telerik.Reporting.TextBox))
     {
       Telerik.Reporting.TextBox textBox = (Telerik.Reporting.TextBox)itemEnumerator.Current;
       // value contains an expression, vs. literal text?
       if (textBox.Value.StartsWith("="))
         textBox.Value = "0";
     }
   }
 }



Patrick
Top achievements
Rank 1
 answered on 01 May 2012
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?