Telerik Forums
Reporting Forum
0 answers
95 views
Hello, I need to know how access a Session value inside Telerik.Report.
I need pass this value to filter SQL DataSource or show parameters this Session.

Thank you
Cesar
CESAR CARVALHO
Top achievements
Rank 1
 asked on 24 Jul 2010
1 answer
320 views
Scenario:
I have to build a report where there are two different data sources and some calculations have to be performed in the report.

Problem:
I see only one datasource in one report.

Question:
Am I missing something or this is a short coming in the reporting tool? How can I add two datasources and computed fields in the report?

Thank you.
Peter
Telerik team
 answered on 23 Jul 2010
1 answer
209 views
I'm building a report where dollar amounts are displayed to the right of production descriptions. My customer would like to have the report display trailing dots (".....") between the end of the product description and the dollar amount, very much like a restaurant menu. I have tried padding the display value with a large number of dots and disabling the "Can grow" property, but that doesn't seem to work; somehow the dots are simply not rendered if the length of the textbox value becomes too long. I've also just added a dotted bottom border to the textbox, but my customer doesn't like the way that is diplayed; they want the dotted line to appear just to the right of the product description, not beneath it, which is what a bottom border will do.

Is there another technique that would work? Maybe a custom formatting string of some kind?
Hrisi
Telerik team
 answered on 23 Jul 2010
1 answer
120 views
I have a LINQ business object with some calculated properties defined in a partial class. The calculated properties are showing up in the Data Explorer intermittently. Any ideas why the CityStateZip property is often not showing up in the Data Explorer?

Below is a simple example (with most of the LINQ generated code removed)

public partial class Address: INotifyPropertyChanging, INotifyPropertyChanged
{
    [Column(Storage="_City", DbType="NVarChar(30) NOT NULL", CanBeNull=false)]
    public string City {get; set;}
 
    [Column(Storage="_State", DbType="NVarChar(30) NOT NULL", CanBeNull=false)]
    public string State {get; set;}
 
    [Column(Storage="_Zip", DbType="NVarChar(30) NOT NULL", CanBeNull=false)]
    public string Zip {get; set;}
}

Below is the calculated property in my code:

public partial class Address
{
    public string CityStateZip
    {
        get
        {
            return City + ", " + State + " " + Zip;
        }
    }
}
Hrisi
Telerik team
 answered on 23 Jul 2010
1 answer
99 views
In a form I set up this expression:
=sum(iif(Fields.Showcode<>'06',Fields.TotalAmount,0))

To my surprise, a TotalAmount of 13.95 was displayed as 14.00

We discovered that changing the expression to:
=sum(iif(Fields.Showcode<>'06',Fields.TotalAmount,0.00))

produces the proper result. It looks as if the first time the expression evaluates false, the data type of the calculated field is set to the intrinsic type of the else-value, which in this case would be 'int'.
Hrisi
Telerik team
 answered on 23 Jul 2010
2 answers
98 views
Hi,

I created a Telerik Report in a class library, as the video tutorial instructed.  I tested it and it works fine.

I added another project, an ASP.NET project to the solution, and added a reference to my class library where the report lives.

I created a page, and put a Telerik ReportViewer control, setting the report to the one I created in the class library.

When I first run it, I get an error saying it cannot map to "\".

I re-ran Visual Studio as Administrator (begrudgingly), and this error dissapeared.  I do, however, get a different error:

An error has occured while processing Report '':
Unable to connect to database.  Please verify that your connection string is valid; in case you use a connection string from the application configuration file, make sure the name is correct and the connection string settings are present in the configuration file of your application.

I check app.config, as well as Settings.settings, and the connection string is there.  And of course, the fact that the report runs fine when previewed in the class library tells me that something is fishy.

I'm using Visual Studio 2010, and the ASP.NET Development Server.

Thanks.
Aaron
Top achievements
Rank 2
 answered on 22 Jul 2010
2 answers
91 views
I just installed Reporting.  I went into VS2010 to create a new report in an existing project.
The error I got was: "The designer could not be showed for this file because none of the classes within it can be designed..."

If I open the code, Visual Studio says it can't find "Telerik.Reporting".  There is a reference to Telerik.Reporting in the project.

I don't know if it makes a difference, but I am using 2008.3.1314.35 of the Telerik.Web.UI tools.  Also, reporting works fine in VS2010.

Thanks!
Kevin
Top achievements
Rank 2
 answered on 22 Jul 2010
3 answers
203 views
Please could you provide such example cause i can't finish deployement by myself, and using you're example i would be shure everyting is done right and reports can be used in Silverlight 4 under VS2010. It would be great if you could add it to examples and provide link for it. 10x in advance!
Peter
Telerik team
 answered on 22 Jul 2010
2 answers
100 views
hi guys,

i'm wondering, why the Telerik report designer, when i have an error or warning regarding the layout design,
doesn't give me any message? just a yellow triangle with a question mark? what am i suppost to do when i get this?
how do i know what is wrong?

second thing, is there a way to translate the text in the toolbox that says: "[0] of 0 Pages" ?
and translate the text in the button that say "preview" when i use visible parameters?

thanks.
Peter
Telerik team
 answered on 22 Jul 2010
1 answer
338 views
I'm trying to do some conditional formatting and I want to use an enum from my datasource. What should the value look like? When I uses a string as value, it says that it cannot compare "enum" and string.

Best regards,
Michael
Ivan
Telerik team
 answered on 22 Jul 2010
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?