Vbnet crystal report conversion methods

Source: Internet
Author: User

Vbnet crystal report conversion methods

Create a new Crystal Report, and then create the data of the current Crystal Report on the page.

The background code is as follows:

The attributes and methods for defining and formatting reports, setting export options, and setting Print Options and report options can be accessed through the objects returned by the reportdocument attribute.
Dim customerreport as reportdocument = new reportdocument
Dim reportpath as string = server. mappath ("crystalreport2.rpt") 'specifies the report path
Customerreport. Load (reportpath) 'loads a new report. If a report has been loaded, close it and open a new report.
Dim dataset as dataset = datasetconfiguration. customerdataset 'Load the dataset
Customerreport. setdatasource (Dataset) 'optimize tables object' to the optimize table Engine
'Mermerreport. setparametervalue ("pards", "sdfsdfsdfsdfsdf") 'first method of parameter value passing in a crystal report

CustomerReport. ParameterFields ("pards"). CurrentValues. AddValue ("sdflu8888888888") 'Second method of parameter value passing IN THE CRYSTAL REPORT

CrystalReportViewer. ReportSource = mermerreport specifies the report for the CrystalReportViewer control.
CrystalReportViewer. ShowFirstPage () 'displays the first page of data for loading a report.

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.