Telerik Forums
Reporting Forum
1 answer
176 views

I've gone over the guides here several times and I can not get the HTML5 viewer / REST api to work in a C# .Net 4.5 Web Forms project.

http://www.telerik.com/help/reporting/telerik-reporting-rest-host-http-service-using-web-hosting.html

The error I get in the Report Viewer is "Not Found: undefined"

The error I get from the /api/reports/formats/ page is

<Error><Message>No HTTP resource was found that matches the request URI 'http://localhost:54659/api/reports/formats'.</Message><MessageDetail>No type was found that matches the controller named 'reports'.</MessageDetail></Error>

Please advise on how I can get this to work in a website.

Rory
Top achievements
Rank 1
 answered on 04 May 2015
2 answers
243 views

Hi

I have create my report and it's bind to an SQL stored procedure - it works fine when I was pass single value - but now I need to pass multivlue (ProductID) as example to get report where ProductID in (1,2,3)

I set the SQL stored procedure to let me get result as i need - but the problem i got is in my report i got err msg in image in attachment

so please how can i make it work in MVC Project or HTML5 Project i can't find that in demo files examples?

Thanks a lot ....

Stored Code:

@MultiVal NVARCHAR(MAX),
@qty INT
 
AS
 
SELECT ProductID, ProductName, @qty AS stock FROM Products
 
CROSS APPLY dbo.NumbersTable(1, @qty, 1)
 
WHERE ProductID IN (SELECT Val FROM dbo.fn_String_To_Table(@MultiVal,',',1))

fn_String_To_Table FUN :

ALTER FUNCTION [dbo].[fn_String_To_Table] (
            @String VARCHAR(max), /* input string */
   @Delimeter char(1),   /* delimiter */
   @TrimSpace bit )      /* kill whitespace? */
RETURNS @Table TABLE ( [Val] VARCHAR(4000) )
AS
BEGIN
    DECLARE @Val    VARCHAR(4000)
    WHILE LEN(@String) > 0
    BEGIN
        SET @Val    = LEFT(@String,
             ISNULL(NULLIF(CHARINDEX(@Delimeter, @String) - 1, -1),
             LEN(@String)))
        SET @String = SUBSTRING(@String,
             ISNULL(NULLIF(CHARINDEX(@Delimeter, @String), 0),
             LEN(@String)) + 1, LEN(@String))
  IF @TrimSpace = 1 Set @Val = LTRIM(RTRIM(@Val))
    INSERT INTO @Table ( [Val] )
        VALUES ( @Val )
    END
    RETURN
END

Ahmed
Top achievements
Rank 2
 answered on 04 May 2015
7 answers
284 views
Hi
How I can change "Generating Report" Message(when report initialaizing) to what message I want For Example: "Generazione di Report"
Thanx
Javier
Top achievements
Rank 1
 answered on 30 Apr 2015
2 answers
86 views

Hello everybody,
I have a problem with the style editor in visual studio 2013, he is to small. Is there any possibility to change the size?
Yes, I use the property window in studio to set some styles, but this one is much more confortable...
Thank you for your support.

​ â€‹

Stef
Telerik team
 answered on 30 Apr 2015
8 answers
268 views
Hi,

I'm trying to build a pie chart, but really have no idea how this is accomplished.  I've look at the tutorials and really don't give me enough information.

I created a SQL Source for percentages:
1. Budget Spent
2. Remaining Budget

I just want to plot the pie chart to show this distribution, for example budget spent 25% remaining budget 75%.   This is fairly straightforward.  I've used Crystal and Infragistics and it wasn't very hard to do.  Can someone assist with this please.

Thank You,
Michael
Top achievements
Rank 1
 answered on 30 Apr 2015
1 answer
189 views

Hello,

I have a problem with the reportViewer.
A few months ago, I have created a project to create invoices.
Now, I have to change some things, but my project is not working annymore.

I could not fix it, zo I diceded to start all over again.

The problem rises when I place a new report viewer. Then I get an error message.
I get this message in every solution I got.

Can someone help me, or direct me in the right direction?

Nasko
Telerik team
 answered on 30 Apr 2015
3 answers
501 views

Hi,

 I think that in your (really good!) reports don't exists a really important feature.

In any section (Details, Header, Footer, Group Header, Group Header...) will be really good the possibility of section split, in example because we want show one of section in certain context and not in other.

 

You think is possible to add this feature (that exists in example in Crystal Reports) for a future release?

 

Thanks

marc.

Nasko
Telerik team
 answered on 30 Apr 2015
2 answers
141 views

Hello,

We are using Telerik reports with our software and standalone report designer to define end user report template. We have provided a custom ADO.Net data provider so that end users can design reports with remote data source that is provided by a WCF service. However, many end users are unwilling to use standalone designer that requires setup for ADO.Net connections albeit the connection stirng is encrypted.  What we want to know is the is there any plan in a future to release report designer components for Asp.Net Mvc so that the report designer is incorporated into our application and not having to download and setup to design reports?

 

Any information is appreciated.

 Thanks.

Shoji Kaburagi
Top achievements
Rank 1
 answered on 29 Apr 2015
2 answers
198 views

hi

I need sum of field in every page .

what can I do?

Nasko
Telerik team
 answered on 29 Apr 2015
4 answers
140 views

Hi

i have create report with telerik html5 and it works first time only page is loaded and if i change select from drpdownlist nothing happened and report don't get new value that changed and i don't know why that (i have add js code to get drpdownlist "change" but it's not fired)?!

@model Hemdan.Models.Product
 
@{
    ViewBag.Title = "Home Page";
}
 
 
<div>
    @Html.DropDownListFor(model => model.ProductID, (SelectList)ViewBag.ProductID, new { @class = "form-control", style = "width: 150px; font-weight: bold; margin:auto;", id = "ProductID" })
    @Html.ValidationMessageFor(model => model.ProductID, "", new { @class = "text-danger" })
    <br />
    <div id="reportViewer1">
        loading...
    </div>
</div>
 
@section scripts
{
    <script type="text/javascript">
        $(document).ready(function () {
            $("#reportViewer1")
                .telerik_ReportViewer({
                    serviceUrl: "/api/reports/",
                    templateUrl: '/ReportViewer/templates/telerikReportViewerTemplate-9.0.15.225.html',
                    reportSource: {
                        report: "Hemdan.Views.kinds.Report1, Hemdan",
                        parameters: { Item: $('#ProductID option:selected').val() }
                    },
                    viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
                    scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,
                    scale: 1.0,
 
                    ready: function () {
                        //this.refreshReport();
                    }
                });
        });
 
        $('#ProductID').change(function () {
            var viewer = $("#reportViewer1").data("telerik_ReportViewer");
            viewer.reportSource({
                report: viewer.reportSource().report,
                parameters: { Item: $(this).val() }
            });
            viewer.refreshReport();
        });
    </script>
}

i do all steps as: http://www.telerik.com/help/reporting/html5-report-viewer-howto-custom-parameters.html

so please how can i make it works - cloud you please fix my code to let how to it or give me small sample ...

Thanks a lot ....

Ahmed
Top achievements
Rank 2
 answered on 29 Apr 2015
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?