BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
2) public void OnInitReportOptions(ReportViewerOptionsreportOption)
{
reportOption.ReportModel.ReportServerCredential = System.Net.CredentialCache.DefaultCredentials;
}
Nothing Worked For me..
Please help me..
<html>
<head>
<title></title>
<link rel='nofollow' href="http://cdn.syncfusion.com/16.4.0.54/js/web/flat-azure/ej.web.all.min.css" rel="stylesheet" />
<script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js" type="text/javascript"></script>
<script src="http://cdn.syncfusion.com/16.4.0.54/js/web/ej.web.all.min.js" type="text/javascript"></script>
<meta charset="utf-8" />
</head> |
<div style="height: 600px; width: 1250px; min-height: 524px;" id="container"></div>
<script type="text/javascript">
$(function () {
$("#container").ejReportViewer(
{
reportServiceUrl: "/api/ReportApi",
reportPath: '~/App_Data/GroupingAgg.rdl',
processingMode: ej.ReportViewer.ProcessingMode.Remote
});
});
</script> |
[EnableCors(origins: "*", headers: "*", methods: "*")]
public class ReportApiController : ApiController,IReportController
{
//Post action for processing the rdl/rdlc report
public object PostReportAction(Dictionary < string, object > jsonResult)
{
return ReportHelper.ProcessReport(jsonResult, this);
}
//Get action for getting resources from the report
[System.Web.Http.ActionName("GetResource")]
[AcceptVerbs("GET")]
public object GetResource(string key, string resourcetype, bool isPrint)
{
return ReportHelper.GetResource(key, resourcetype, isPrint);
}
//Method will be called when initialize the report options before start processing the report
public void OnInitReportOptions(ReportViewerOptions reportOption)
{
}
//Method will be called when reported is loaded
public void OnReportLoaded(ReportViewerOptions reportOption)
{
}
} |