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.
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.
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
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.
​ ​
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?
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.
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.
hi
I need sum of field in every page .
what can I do?
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 ....