Telerik Forums
Reporting Forum
1 answer
104 views
Hi,

How can I create custom messages to show the user instead of the standard 'object reference not set to an instance of an object'?
I found answer with the use of resources but don't know how to use them with MVVM. Can i set them in XAML?
Chavdar
Telerik team
 answered on 11 May 2011
2 answers
107 views
Hi, i have a problem, i installed the new component of reporting Q1 2011, but previus i had installed Q3 2010,  i when run the aplication i can't see the new  formats exports of Q1 2011.


Thanks
Peter
Telerik team
 answered on 10 May 2011
3 answers
65 views
Can you use a user-function with a ParamArray as the argument? I tried but when i preview my report, it gives me the big dreaded error box and says The expression contains undefined function call CsvList().

Here is my function def:

Public Function CsvList(ParamArray items As String()) As String
    Return Join((From s In items Where Not String.IsNullOrEmpty(Trim(s)) Select s).ToArray, ", ")
End Function

and here is my call to the function:

= my_reports.General.CsvList(
  Fields.Firm,
  Fields.Name1,
  Fields.Name2,
  Fields.Address,
  Fields.AptType + " " + Fields.AptNum,
  Fields.City,
  Fields.State,
  Fields.Zip,
  "PH: " + Fields.Phone,
  "FX: " + Fields.Fax,
  "RSN: " + Fields.Reason
)
Peter
Telerik team
 answered on 10 May 2011
1 answer
250 views
Hi,
I'm trying to use the evaluation version of telerik Reporting and I've this kind of problem.
I need to show into the report some data (busines objects) from a ViewModel of mine.

I mean:
I have a view with a reportViewer :

 

 

 

    <telerik:ReportViewer x:Name="ReportViewer1" Report="{Binding DataContext.Report, ElementName=this}" />

 

In its code behind I set the datacontext to the ViewModel:

 

 

    this.DataContext = new myViewModel();

 


Now the problem is:
in myViewModel I have the property "Report" as Telerik.Reporting.Report
and also another property "MyProp" (string) that I need to show into the Report

Is it possible to do that and what is the way?
I mean: how have I to set the textBox in the report ?

thanks in advance
Michele Semprini

Chavdar
Telerik team
 answered on 09 May 2011
3 answers
193 views
Hi

We're using the silverlight report viewer control on a client application, everything was working fine till yesterday, now we're getting this error while trying to preview a report:

The type initializer for 'System.Windows.FrameworkElement' threw an exception.
The type initializer for 'System.Windows.Media.Transform' threw an exception.
Not enough storage is available to process this command

Please, this is urgent... what its causing it? how can we prevent it?

thanks in advance

Roygar
Peter
Telerik team
 answered on 09 May 2011
4 answers
346 views
I am facing problems regarding binding the columns of table in report, i have used the mysql db and the data is taken in a dataset
which contains all the data and data can be seen during debugging in a dataset but how can i display that data into a table which is inside
a report, i have taken parameters of report which are being shown when i run the application any urgent help will be grateful
Peeyush
Top achievements
Rank 1
 answered on 06 May 2011
3 answers
130 views
Hi Guy,

I have a problem with the next chart inside my report.

I have the following data

Name Year Amount
Company A 2009 5
Company A 2009 5
Company B 2009 5
Company B 2009 5


I want two bars, one for Company A at X-axis value 2009 and Y value: 10, second is Company B with X-axis value 2009 and Y value 10.

The current situation is that I get two bars, for company A, one company B with both value: 5

How can I add up these values?

            this.chart1.DataGroupColumn = "Name";
            this.chart1.DataSource = this.sqlDataSource1;
            this.chart1.PlotArea.XAxis.AutoScale = false;
            this.chart1.PlotArea.XAxis.DataLabelsColumn = "Year";

Thank you,
Robert
Peter
Telerik team
 answered on 06 May 2011
1 answer
120 views
Hi,

I create a report programatically like this:

Dim report As New myrpt
Dim adapter As New System.Data.SqlClient.SqlDataAdapter(sql, GetConnectionString())
report.DataSource = adapter
Me.ReportViewer1.Report = report
Me.ReportViewer1.RefreshReport()

Then if i set the value of a text box (in the designer) to [=Fields.Data], it will display [=Fields.Data] when I display the report instead of displaying the data from the database.  The connection is correct.  What do i need to do differently?

I figured out why the details were splitting.

Thanks
Mathias
Top achievements
Rank 1
 answered on 05 May 2011
1 answer
90 views
I’m confused about how the reporting works for Silverlight.    Is the viewer the only thing available on the Silverlight side?    I have data in my Silverlight application that resides on the client side, but the Telerik report seems to be created on the server side (ASP.Net).    Does that mean I need to push my client data (in the form of a List, Dictionary, or

SortableCollectionView)

 

 

to the server side (probably using a WCF service) to view it in Silverlight.   In other words can the Silverlight viewer look at a Silverlight report or must it always be a report created in straight ASP.Net. 

Peter
Telerik team
 answered on 05 May 2011
1 answer
264 views

I'm trying to use Exec:
=Sum(Fields.Total)/Exec('rptName', Sum(Fields.Total))

to calculate %.

But I'm getting 0.

Order and Sample are the result of the grouping

If I use only  = Exec('rptName', Sum(Fields.Total)) I'm getting 64.

Can someone help me, please...

Peter
Telerik team
 answered on 05 May 2011
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?