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