Microsoft asp.net 2.0 rdlc report released to VM

Source: Internet
Author: User
Tags connectionstrings

1. Set the report. rdlc, link the database string, and generate the dataset file. It is in app_code.

2. Complete report. aspx, drag and drop the reportviewer control, automatically generate objectdatasource, and select report. rdlc report.

3. Place the link string in the web. config file.

<? Xml version = "1.0" encoding = "UTF-8"?>
 
<Configuration>
<AppSettings/>
<ConnectionStrings>
<Add name = "callmealConnectionString" connectionString = "Data Source =.; Initial Catalog = data; Persist Security Info = True; User ID = sa; Password = mima"
ProviderName = "System. Data. SqlClient"/>
</ConnectionStrings>
<System. web>

<HttpHandlers>
<Add path = "Reserved. reportViewerWebControl. axd "verb =" * "type =" Microsoft. reporting. webForms. httpHandler, Microsoft. reportViewer. webForms, Version = 8.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a"
Validate = "false"/>
</HttpHandlers>
<Compilation debug = "false">
<BuildProviders>
<Add extension = ". rdlc" type = "Microsoft. Reporting. RdlBuildProvider, Microsoft. ReportViewer. Common, Version = 8.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a"/>
</BuildProviders>
</Compilation>

<Authentication mode = "Forms"/>

</System. web>
</Configuration>

4. Copy an object

Microsoft. ReportViewer. Common. dll
Microsoft. ReportViewer. ProcessingObjectModel. dll
Microsoft. ReportViewer. WebForms. dll
Microsoft. ReportViewer. WinForms. dll

To the bin directory of the bin VM. Files can be copied from c: \ windows \ assembly using the doscommand.

 

In this way, Microsoft reports can be used on virtual hosts.

It seems that Microsoft reports are easier to use, and Crystal Reports are not easy to publish (or release, but it is more troublesome)

In the future, it will be better to use Microsoft's rdlc for projects.

Related Article

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.