Experience in the use of Xtrareport

Source: Internet
Author: User

I have been using reportmachine design reports, but this time to do B/s development gave up RM, not RM is not good to use, it should be said that RM has many advantages, such as two report styles, the speed of design reports, many features in line with Chinese-style reports and so on. But there are some problems with RM being used in web development, for example, the report preview often fails, but also to change the level of computer security (also have friends through Alipay certificate for code signing to solve the problem, but the computer has not used Alipay, the scheme failed), the most fatal is the lack of help files, Technical support is not ideal. Here is not in the specific evaluation of the advantages and disadvantages of the two reporting tools, or to talk about the experience:

1. Design Report

It is recommended to design the report through Ribbonenduserdesignerdemo. Personal feelings are much easier to design than in vs.

2, call the report

Dim rpt As New DevExpress.XtraReports.UI.XtraReport
        rpt.LoadLayout(MapPath (Common.ConfigHelper.GetConfigString("ReportFile")) & "CerDetail.repx")
        rpt.DataSource = ds
        ReportViewer1.Report = rpt

By the way, some comrades ask about DS. Tables.add (DT) will appear in the DS already exist this table, in fact, the following methods can be resolved

Dim dt As New DataTable
        dt = sm.GetList_CerEmp("").Copy
        dt.TableName = "CerEmp"    ‘CerEmp自己定义的
        ds.Tables.Add(dt)

3, transfer parameters

Dim rp As New DevExpress.XtraReports.UI.XtraReport

        Dim item As New DevExpress.XtraReports.Parameters.Parameter
        item.Name = ""

        item.Value = ""
        rp.Parameters.Add(item)

The request Parameters property is set to No

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.