Telerik Forums
Reporting Forum
3 answers
393 views
Is there a way to replace the standard true/false text with some custom text. when using 'Boolean' type of report parameters?

Thanks
Sunil
Peter
Telerik team
 answered on 07 Jan 2011
3 answers
109 views
When exporting data from a Report to CSV or Excel format, we would like to transform the display data into internal data representation. For example, we will display a User friendly descriptive name on the report, but when exporting data we would like export internal DB equivalent instead (see below). Similarly, we would like to export additional columns during export if appropriate. Let me know if this is possible to do.

Report display
Loan #     Field Name
2       From Date
2       To Date
2       Buyer Amount


Exported Data
loan_id   uad_audit_field_name
2   l901_from_dt
2   l901_to_dt
2   l901_buyer_amt
Peter
Telerik team
 answered on 07 Jan 2011
0 answers
76 views
Hello,

I am using Telerik Reporting Q3 2009 and I have a user function defined.

When I use it inside my code it works fine but when I call it from the report it does not return the expected value.
Here is the code in VB.Net:

GetResourceValue("Txt:Days", "CoreFunctions")

which returns : Days

Inside the report in a table field I use the following expression:

=TelerikReports.modCommon.GetResourceValue("Txt:Days", "CoreFunctions")

which returns" Txt:Days"

Here is my function:

 

  Public Function GetResourceValue(ByVal sKey As String, ByVal sAppName As String) As String
        Try
            Dim ds As New DataSet
            ds.ReadXml(System.Web.HttpContext.Current.Server.MapPath(".") & "\..\ResourceFiles\" & sAppName & "." & LANGUAGE & ".resx")
            Dim rows() As DataRow = ds.Tables("data").Select("name = '" & sKey & "'")
            If rows.Length > 0 Then
                Return rows(0)("value")
            Else
                Return sKey
            End If
        Catch ex As Exception
            Return sKey
        End Try
    End Function

 

Any idea ?

Thanks in advance

Viviane
Top achievements
Rank 1
 asked on 06 Jan 2011
2 answers
88 views
Hi,
I am using Telerik Reporting Q3 2009 and evey time I drag and drop Table wizard or crosstab wizard to my report the wizard opens and when it asks to choose a Data Source I get this message:
An unexpected error ocurred.
Error Message: Object reference not set to an instance of an object.

Does someone have any idea how to solve that ?

Thanks in advance.
Viviane
Top achievements
Rank 1
 answered on 06 Jan 2011
1 answer
86 views
The Label is a problem in DefaultLabelValue in properties ChartSeries Collection Editor. So 
I put the value for the type percent, he returns me to the type percent, and no other value to 
currency or any other work. I have already changed the values for #% # Y {P}, etc.. 
No work! 
Keeps returning value of type integer. As in figure below (grafico1.jpg).

In the second figure (grafico2.jpg) should be so graphic, as shown in visual studio. 
But once the report is generated is as good as the first figure (grafico1.jpg).


Help me, please!

Att.

Matheus Ribeiro.




Anthonio Matheus
Top achievements
Rank 1
 answered on 06 Jan 2011
2 answers
101 views
I have a one parameter report that uses a drop down to select a report parameter before processing. If the display settings are 1024 X 768 then I get a scroll bar (Only in IE) which the parameter ends up being just about hidden and is unselectable. Under the same 1024 x 768 display settings Firefox and Chrome work fine.

Any ideas on how to get this to work correctly in IE?

<%

@ Register Assembly="Telerik.ReportViewer.WebForms, Version=4.1.10.921, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" Namespace="Telerik.ReportViewer.WebForms" TagPrefix="telerik" %>

 


<

 

telerik:ReportViewer ID="ReportViewer1" runat="server" Width="100%" Height="500px">

 

 

</telerik:ReportViewer>

 

Dwayne Starkey
Top achievements
Rank 1
 answered on 06 Jan 2011
1 answer
55 views
I created a Report1 and it code behind added this code after InitializeComponent():

            // create and populate an array of Coffee objects
            Coffee[] coffees = new Coffee[]
            {
            new Coffee("Latte", 1),
            new Coffee("Mocha", 2),
            new Coffee("Dark Roast", 3)
            };
            // assign the array to the DataSource
            this.DataSource = coffees;

and added this class:
    public class Coffee
        {
            private string _name;
            private int _id;
            public Coffee (string name, int id)
            {
                _name = name;
                _id = id;
            }
            public string Name
            {
                get
                {
                    return _name;
                }
                set
                {
                    _name = value;
                }
            }
            public int ID
            {
                get
                {
                    return _id;
                }
                set
                {
                    _id = value;
                }
            }
        }

I added two textboxes to Report1.  One uses the expression =id  and the other uses =name.  When I add Report1 to a web page using a ReportViewer, it only creates 2 records, both show id = 1, and name = Latte.
Richard M
Top achievements
Rank 1
 answered on 05 Jan 2011
2 answers
282 views
Hi,

I currently have a System that can create, view and export (PDF) Telerik Reports dynamically.  I have it set up so the user can choose which reports to be exported, or they can also export ALL of the reports that apply. For both the "Selected Reports" and "ALL Reports" areas of my project I would also like to add Print functionality but am unsure of a way to do this proggramatically.

Is it possible to print multiple Telerik Reports in C#? and if so, how?  (Preferably with a Preview if possible)

Best Regards,

Landon
Landon
Top achievements
Rank 2
 answered on 05 Jan 2011
4 answers
228 views
I'm creating a simple list report with columns and rows.
I don't use Table object because I need paging in html view in ReportWriter
I add ID, First Name, Last Name, Phone to the detail band in the report.
Per your docs I set Dock = Left to each item.  (they all align nicely)
Now I need to insert Middle Initial between First Name and Last Name
I select Last Name and Phone and set Dock = None, i move them to the right to make room for Middle Initial
I add Middle Initial field and insert it between First and Last Name.  My field order looks like ID, First Name, Middle Initial, Last Name, Phone

Here's the problem:
When I select all fields and set Dock = Left.  Middle Initial is moved to end!  ID, First Name, Last Name, Phone, Middle Initial.

When dock = left is set, it appears the designer aligns based on the order in which you add the field.  How do i change that behavior? 
Steve
Telerik team
 answered on 05 Jan 2011
3 answers
114 views
hi there,

at the moment we use an older version of the Telerik.Reporting dll (and Telerik.ReportViewer.WebForms) - version: 3.1.9.701

we plan to update the reporting part on our web-application to the newest version. we also use the Telerik.Web.UI product for the asp-frontend.
so i installed the version 4.1.10.921 (Q2 2010 SP1) and tested it with our environment...

the first big difference is, that i miss the loading panel, when the preview button is clicked.. i don't find a property to activate/show this loading panel.. the data will eventually appear, so there is only problem with the missing loading panel..

so is there maybe a link between the reporting and the web assemblies, cause this is the same old version from the last year and we don't wanna change it now..
or is there something to change in the web.config.. or something else??

thx and greets..
basti
Peter
Telerik team
 answered on 05 Jan 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?