Debugging experience in releasing Crystal Reports under Asp.net

Source: Internet
Author: User

At the end of last year, I had less work. Learn something. Use grid ++ as a report tool for the previous project. The main reason is that debugging takes a long time for invoicing. In fact, it is still the reason for the printer. The length of paper for different printers is sometimes different, the four-way printer was used for the first time, a 10 years ago. It was not correct to set up the paper in XP, but A4 was relatively accurate. Later, with Epson, the first was 300 k, and then 680 K. Different printers and paper had to be adjusted differently. Sometimes, I think it is a problem with grid ++. If I want to use another tool, the crystal report is a big one in the industry. Another point is that you may need to develop a web project or print it in the future. It's okay to use grid ++. Currently, in version 5.0, the free version is only used for preview, there is one more person's logo, and it is quite convenient to print the logo, giving users an additional choice. With Crystal Reports, pirated files can also be used. It seems that five concurrent users have problems.

Record some debugging procedures for later viewing.

 

1. Search for information online. First, I found the "vs2008 CRYSTAL REPORT Quick Start. CHM, read it, and it was very convenient to get the code down. SQL server2005 built a database and ran it. The effect was good. However, when you click Print, the PDF file is first exported by default. This is not a problem. You can use ActiveX to check the information on the Internet. In pageload, crystalreportviewer1.printmode = crystaldecisions. Web. printmode. ActiveX; the debugging result is always faulty. Which services are abnormal.

 

2. Continue to find information. A lot of information about printcontrol. Cab is added in Web. config according to the instructions.

<Configsections>
<Sectiongroup name = "businessobjects">
<Sectiongroup name = "crystalreports">
<Section name = "printcontrol" type = "system. configuration. namevaluesectionhandler, system, version = 1.0.3300.0, culture = neutral, publickeytoken = b77a5c561934e089, custom = NULL"/>
</Sectiongroup>

</Sectiongroup>

</Configsections>
<Businessobjects>
<Crystalreports>
<Printcontrol>
<Add key = "url" value = "http: /localhost: 3003/printcontrol. Cab"/>

</Printcontrol>

</Crystalreports>

</Businessobjects>

However, the version number is incorrect. Later, another method was to decompress the cab and find a DLL in the cab. Let the web project reference the DLL and try it, debugging is okay. You can directly select the printer to print it.

 

3. The project is always to be released. Try to release the project. The result and icon are missing. I think the release is incomplete and some resource files are not referenced. This piece is dead, and the doctors are in urgent need. Remove the crystal report that comes with Vs and install a special crystal report for running. The result still does not work. After searching for half a day, I used

C: \ Inetpub \ wwwroot \ The aspnet_client under it is copied to the released program directory. Open this directory and go to the aspnet_client \ system_web \ 2_0_50727 \ crystalreportwebformviewer4 layer by layer. Here, we have the required icons to print the window pages during the process. Copy to the release directory.

 

Of course, if someone guides you, you will be very easy. No one, you can actually learn something else in the process of exploration.

If vs is not installed, you can install crredist2008_x86.msi at, which is for 2008.

If you deploy it on the target machine, you can directly install crruntime_12_0_mlb.msi, specifically. NET 2.0 Crystal Reports run at 40 MB. During installation, productid is input step by step. This is not found on the Internet. However, if someone else says this can be skipped directly, I will skip it directly next.

Pay attention to the version number. You can check it on the official website.

Http://wiki.sdn.sap.com/wiki/pages/viewpage.action? Pageid = 56787567

Cr 10.5(Vs. net 2008) 10.5.3700.0 Crredist2008_ia64.msi (64 bit itanium) Download link Win XP, Win 2003, win 2008, win Vista, win 7 2.0, 3.5
    Crredist2008_x64.msi (64 bit Intel) Download link Win XP, Win 2003, win 2008, win Vista, win 7 2.0, 3.5
    Crredist2008_x86.msi (bootstrapper) Download link Win XP, Win 2003, win 2008, win Vista, win 7 2.0, 3.5

The version used in 2008 is 10.5, and 2005 is 10.2, so be sure to pay attention to the version.

 

These problems have been solved, and other issues with the crystal report can be studied, mainly the design of the report template, the push mode, and the PULL mode.

Of course, I am mainly worried about copyright. What should I do if there are more than five concurrent users? I really want to buy a license, and the estimated cost is relatively high. I also saw some online saying that a subitem in the registry is modified, however, I did not find the subitem. I am not worried about using grid ++. I can buy a license for several thousand yuan at most. Actually, grid ++ is quite convenient. I used it for two projects.

 

In the end, let's wait for the project to begin. It's better to have one more choice than just one method.

 

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.