The MVC Framework introduces grid ++ report, mvcgrid
"We are no stranger to reports, and we have already been in touch with the data room charging system. Simply put, reports dynamically display data in tables, charts, and other formats, the formula can be used to indicate: "report = diverse formats + Dynamic Data ". Recently, the MVC + EF framework has been used as the personnel system, and the finance needs to be displayed using reports.
In the view in mvc, you only need to write the following code to introduce the report:
<Span style = "font-family: KaiTi_GB2312; font-size: 18px;"> It has been introduced, but it is not as smooth as we think. The error "failed to read the template" is always reported.
You can find two solutions by searching on the Internet:
1. If the following error occurs and only the header is displayed:
In the IIS service, click "MIME type" to add type. grf.
In this way, the first problem can be solved. If the report cannot be displayed at this time, read it.
2. In the first case, the following situations may occur:
(1) enter the IISExpress installation directory in the DOS window. The default value is "C: \ Program Files \ IIS Express ";
(2) execute the command in the IISExpress installation directory: appcmd set config/section: staticContent/+ [fileExtension = '. xy', mimeType = 'text/plain']
PS: The variable fileExtension string is the file extension, and the variable mimeType string is the description of the file type. For example, the command I run is: appcmd set config/section: staticContent/+ [fileExtension = '. grf', mimeType = 'printreports/proxy statement. grf']
In this case, the command window prompts that the change is successful, so you can access the report.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.