我正在使用ASP.NET和https://www.jsreports.com jsreports生成一个想要像这样使用它的报告
orderData = $.parseJSON(stringData);
// Alias JasperReportDef for brevity
var JasperReportDef = jsreports.integrations.jasper.JasperReportDef;
// Fetch .jrxml file
$.get("/Content/Images/report4.jrxml", function(jrxml) {
// Convert to jsreports format
var reportDef = JasperReportDef.fromJRXML(jrxml);
// Create designer
var designer = new jsreports.Designer({
container: $("#textToPrint"),
data_sources: [orderData], // Will use the embedded data source information
report: reportDef
});
});
但是当我构建它时,我有这个错误: 无法加载资源:服务器响应状态为404(未找到)http://localhost:4732/Content/Images/report4.jrxml