The MVC Framework introduces grid ++ report, mvcgrid

Source: Internet
Author: User

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.

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.