Я только что создал отчет.
Во время разработки я создал параметры.
Теперь мне нужно передать параметры по коду:
Код: Выделить всё
PreFactura report = new PreFactura();
report.Parameters["CompaniaID"].Value = "01"; // txtcia.Text;
report.Parameters["OficinaID"].Value = "US.MIA"; // txtOficina.Text;
report.Parameters["ClienteID"].Value = null;
report.Parameters["VendedorID"].Value = null;
report.Parameters["ProductoID"].Value = "P01-00001"; // txtProducto.Text;
report.Parameters["Desde"].Value = txtFechaDesde.Text;
report.Parameters["Hasta"].Value = txtFechaHasta.Text;
report.Parameters["Comando"].Value = null;
report.RequestParameters = true;
// report.DataSource = sqlDataSource;
//
// documentViewer1.DocumentSource = report;
// report.ShowPreview();
ReportPrintTool printTool = new ReportPrintTool(report);
printTool.ShowPreview(); // para seleccionar impresion: .PrintDialog();
report.CreateDocument();
Поможете, пожалуйста?
Спасибо
Документация DevExpress, интернет-помощь, видео.
Подробнее здесь: https://stackoverflow.com/questions/783 ... parameters
Мобильная версия