Report using rdlc format in ASP. NET 2.0

Source: Internet
Author: User

I want to move all my essays on another blog here. The following is one of them. At that time, we used the RTM version of vs2005. I don't know if this problem still exists.

Recently, You need to draw a line chart based on the data, so you want to use the report tool that comes with vs2005. At the beginning, it was very smooth. Later, I found that the charts drawn on the page could not change with the changes in parameters. For this reason, I had spent most of the afternoon tossing the ship. It was really a trash, and finally I found that the reportviewer was missing. localreport. the call of refresh makes my head confused by working overtime ......

However, what I still cannot understand is the problems that occur when the system is released. I directly use the publish function of vs2005 to publish the system. It adopts the pre-compilation method. I removed the "allow this precompiled site to be updatable" option and published it to the server, the report cannot be displayed. After some tests, we found that the report file path could not be found. For this reason, I changed the reportpath ON THE ASPX page to a relative address; then, remove the reportpath attribute in the aspx file and use server in the CS file. the mappath method still does not work. There is no way, so you have to select the "allow this precompiled site to be updatable" option, publish, and then the report file on the server is available, select this option, I think it may have a slight impact on the performance, but the progress is very close, and this is the only thing to do first. If you find the answer to this question in the future, I will add it here.

[2006-2-13] edit:

It seems that the cause may be found. After publish is pre-compiled, the report file becomes a "marker" file like other aspx files after it is published to the server, you only need to overwrite the original report file with this "marker" file. This may be a problem with vs2005?

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.