Say "Report" We are not unfamiliar, the computer room toll system we have already contacted, Simple said: The report is to use tables, charts and other formats to dynamically display data, can be expressed as: "report = various formats + Dynamic Data". Recently in the MVC+EF framework to do personnel systems, need to use a report to display financial.
In MVC view, we only need to write the following code to implement the introduction of the report:
<span style= "font-family:kaiti_gb2312;font-size:18px;" >
has been introduced, but not as well as we thought, always reported "read in template failure" error.
Two solutions are found by searching the Internet in various ways:
1. If the following error occurs, and only the table header:
In the IIS service, click "MIME Type" to add the type. GRF.
This will solve the first problem, and if you are not able to display the report at this point, please look down.
2. After the first case, the following conditions may also occur:
(1). Enter the iisexpress installation directory under the DOS window, the default is "C:\Program Files\IIS Express";
(2). Execute command in iisexpress installation directory: Appcmd set config/section:staticcontent/+[fileextension= '. xyz ', mimetype= ' Text/plain '
PS: Variable fileextension string is a file extension, variable MimeType string is a file type description, such as the command I executed is: Appcmd set config/section:staticcontent/+[ Fileextension= '. Grf ', mimetype= ' printreports/agency statement. GRF ']
when the command window prompts for a successful change, you can access the report. Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
MVC Framework introduces Grid++report reports