MVC Framework introduces Grid++report reports

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.