Custom RDLC statements show the problem

In WinForm, I report by DataGridView to display, when you click the button, the pop-up a statement to set the form, this form can set the "title", "footer" function, is the main transfer variables gives the RDLC statements on the line, there are "not selected field", "selected fields", the use of DataGridView to set up, mainly can set width and summarized two functions. The purpose of doing so is to define your own RDLC statements to view and print. To solve, how to bind to RDLC statements? ? ?

Started by Jamie at November 16, 2016 - 2:26 PM

Is this effect

Posted by Jamie at December 01, 2016 - 2:50 PM

Your RDLC statements in the design of the time not to specify the data source you will correspond to the field name you front fields and report on the design of a Table return
The data source field inside the Table and RDLC statements inside the column name to the same name.

Posted by Ruth at December 09, 2016 - 3:46 PM

"The field name "report design. Is it right? That pull to a field report on the ah, if you pull up the fixed displayed, even if SQL returns a dynamic table some fields specified, but still can not correspond to the one one, there is a vacancy.

Posted by Jamie at December 14, 2016 - 3:53 PM

How do you report will appear above the CustomerId.

Posted by Colbert at December 29, 2016 - 4:23 PM

 /// <summary>
        /// The initial report. 
        /// </summary>
        /// <param name="rptView">Report container. </param>
        /// <param name="reportPath">Report the relative path. </param>
        /// <param name="parameters">The report parameter. </param>
        /// <param name="reportData">The report data sources. </param>
        protected void InitReport(ReportViewer rptView, string reportPath, IList<ReportParameter> parameters, DataSet reportData)
        {            //The report style path
            rptView.LocalReport.ReportPath = GetReportPath(reportPath);
            //Data source
            foreach (string nameItem in rptView.LocalReport.GetDataSourceNames())
                rptView.LocalReport.DataSources.Add(new ReportDataSource(nameItem, reportData.Tables[nameItem]));
            if (parameters != null && parameters.Count > 0)

You want to display the data in the Table you can control data inside Table.

Posted by Ruth at January 03, 2017 - 6:27 PM

Does the RDLC report data should be how to set up and out, related to parameters, should set the position in which the report parameters, heard that add a name, I think of parameters to specify the display field names and titles, and can set the width and summary, the unification of value in this parameter, in the new class to get it?

Posted by Jamie at January 04, 2017 - 5:42 PM

Your report design above plus a CustomerId column, you don't pass will also show that, unless you do not add to the statements of the above. . .

Posted by Colbert at January 06, 2017 - 4:27 PM

Recovery seems no positive, direct, concise

Posted by Jamie at January 10, 2017 - 5:14 PM