Telerik Forums
Reporting Forum
2 answers
942 views
Hi,

I am using version 6.2.12.1017 of your Reporting components.

PROBLEM
=========
I am getting the following error in a textbox, when my report runs:

The expression contains undefined function call ConvertIntToString().

MORE INFORMATION
==================
- I have a C# Reporting project that contains the reports and a public static class that contain two public static methods.
- The methods names are "GetParentAppType" and "ConvertIntToString" and they both return a string.
- This class is in the same project as my report class.
- Here is the strange part:  I call the two different methods in the Value Property of two different textboxes.
   One textbox DOES find the call to the GetParentAppType Method, but the other textbox gives the error because for some reason it cannot find the ConvertIntToString function.

- Below is what has been entered in Value property of each textbox.

= Cbs.Reporting.Reports.CommonReportingMethods.ConvertIntToString(Fields.BowlerHasCountermeasure)
= Cbs.Reporting.Reports.CommonReportingMethods.GetParentAppType(Fields.parentAppType)

NOTE:  I didn't type this in.  I used the "Edit Expression" dialog and I picked my functions from the "Functions - Misc" treeview.  I've attached an image of how the functions display in that dialog, which means in the designer, those functions are found.  But at runtime, the ConvertIntToString function is not found.

I'm sure if I move these functions to the report's class (code-behind), it would probably find it, but I will want to share these functions across many reports so I don't want to duplicate them in every report.

Any ideas what is causing the error?

Thanks,
Michael

Michael Hunt
Top achievements
Rank 1
 answered on 27 Jun 2014
1 answer
191 views
I am trying to get rows where the filed "Cost" does not have any value, formatted in red.
So far I have tried in several ways but the one that I thing should be closer to the right one is stye following applied to the detailed section of the report:

Expression: Field.Cost
Operator:      =
Value:           =" "

I also tried with value: = Null

but I get errors in the report and no formatting! 
The error I am getting is in the attached picture, however it says "Cannot perform = operation on System.Double and System.String. Same with "Like"
What should I do to get this expression correct?

Thanks,
Felice
Stef
Telerik team
 answered on 27 Jun 2014
1 answer
241 views
Hello Every1 and telerik!!!

I am using visual studio 2010, i have several reports in my app. all were working fine, then i upgraded  to 8.0.14.507. after that up gradation, no report generates, just a blank page. A break point on "RenderBegin" event can not be hit. then a new version of telerik released on 18 june, i tried that also but same result.

then i started trying down-gradation, it worked on version 8.0.14.225. but after few days same result again. now it works only on version 7.2.14.127  but i afraid it will behave like before again.
Refer to attachments for a reportviewer code. it is wasting so much time of mine. anyone with help please.

thanks

Imdad
Stef
Telerik team
 answered on 27 Jun 2014
1 answer
234 views
Hi,

I'm trying to create a report with summary of all rows in the table like the example below.

emp_id   emp_name
1                  a
2                  b
3                  c

emp_count: 3

I tried to add TextBox for emp_count with aggregation to emp_id column but because of the textbox doesn't have DataSource, the value was 0.
When I added DataSource to the report, the emp_count's value was correct but the table's data displayed twice. I also tried to use RowCount("reportName") function
but it didn't work. 

Any suggestion?

Thanks
Stef
Telerik team
 answered on 27 Jun 2014
1 answer
137 views
Hi,
I can not open example Employee Sales Summary.trdx file with Report Designer Q2 2014. It show : Object reference not set to an instance of an object.
You can refer attached file for detail. For other trdx files, it open correctly.

This err also appear with some report file trdx created with Report Designer Q1 - 2014.

Stef
Telerik team
 answered on 27 Jun 2014
0 answers
51 views
Hi,

Currently I am investigating the testing facilities available for Telerik specific reports.

As part of the current Telerik Testing Framework, what coverage is offered to develop coded unit tests (C#) around a Telerik instance reports or Telerik URI reports? 

Kind regards,

Jean-Paul
Jean-Paul
Top achievements
Rank 1
 asked on 27 Jun 2014
4 answers
113 views
Using q1 2013 no Reportbook item in my VS2008  toolbox. Alphabetically i see, panel, picturebox, shape... ? No errors encountered during install that i recall.

any thoughts appreciated.
Stef
Telerik team
 answered on 26 Jun 2014
11 answers
296 views
Hi Team,

When we expect text justification option in textbox and htmltextbox ? Every clients of my company require this. Is there any other workaround available ?

Thanks in advance.
Stef
Telerik team
 answered on 26 Jun 2014
3 answers
313 views
I try to run the report on the report viewer with a lot of calculation. I extended time out on data source. But after a while I got a blank screen.

Do you have any suggestions.

Thank you,
Stef
Telerik team
 answered on 26 Jun 2014
2 answers
416 views
ASP MVC 4 using old aspx not razor
Bootstrap css
confirmed  /api/reports/formats returns json
so rest service webapi is working

/Reports/telerikReportViewerTemplate.html
returns correctly in the browser

All I get is the following "Telerik.ReportViewer.Mvc.ReportViewerBuilder"


Here is my mark-up
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%=Html.TelerikReporting().ReportViewer()
        // Each report viewer must have an id - it will be used by the initialization script 
        // to find the element and initialize the report viewer.
        .Id("reportViewer1")
        // The url of the service which will provide the report viewer with reports.
        // The service must be properly configured so that the report viewer can 
        // successfully communicate with the server. 
        // For more information on how to configure the service please check http://www.telerik.com/help/reporting/telerik-reporting-rest-conception.html.
        .ServiceUrl("/api/reports/")
        // The url for the report viewer template. The template can be edited - 
        // new functionalities can be added and unneeded ones can be removed.
        // For more information please check http://www.telerik.com/help/reporting/html5-report-viewer-templates.html.
        .TemplateUrl("/Reports/telerikReportViewerTemplate.html")
        // Strongly typed ReportSource - TypeReportSource or UriReportSource.
        .ReportSource(new TypeReportSource() { TypeName = "Tracker.Services.ReportOpenOpportunities, Tracker.Services" })
        // Specifies whether the viewer is in interactive or print preview mode.
        // PRINT_PREVIEW - Displays the paginated report as if it is printed on paper. Interactivity is not enabled.
        // INTERACTIVE - Displays the report in its original width and height witn no paging. Additionally interactivity is enabled.
        .ViewMode(ViewModes.INTERACTIVE)
        // Sets the scale mode of the viewer.
        // Three modes exist currently:
        // FIT_PAGE - The whole report will fit on the page (will zoom in or out), regardless of its width and height.
        // FIT_PAGE_WIDTH - The report will be zoomed in or out so that the width of the screen and the width of the report match.
        // SPECIFIC - Uses the scale to zoom in and out the report.
        .ScaleMode(ScaleModes.SPECIFIC)
        // Zoom in and out the report using the scale
        // 1.0 is equal to 100%, i.e. the original size of the report
        .Scale(1.0)
        // Sets whether the viewer’s client session to be persisted between the page’s refreshes(ex. postback). 
        // The session is stored in the browser’s sessionStorage and is available for the duration of the page session.
        .PersistSession(false) %>
</asp:Content>
Stef
Telerik team
 answered on 26 Jun 2014
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?