private void btnBuscar_Click(object sender, RoutedEventArgs e) { //TextBox ka = (TextBox)textBoxOficio; string K = textBoxOficio.Text; DemorReport.Reset(); DataTable dt = db.GetPapeletasIngresadasw(K, K); ReportDataSource ds1 = new ReportDataSource("DataSet1", dt); DemorReport.LocalReport.DataSources.Add(ds1); DemorReport.LocalReport.ReportEmbeddedResource = "PrototiposPoltran.Reportes.PapeletasIngresadas.rdlc"; DemorReport.RefreshReport(); }
public Reporte_PapeletaIngresadas(ScrollViewer scroll) { this.scrollContenedor = scroll; InitializeComponent(); System.Drawing.Printing.PageSettings pg = new System.Drawing.Printing.PageSettings(); pg.Margins.Top = 0; pg.Margins.Bottom = 0; pg.Margins.Left = 0; pg.Margins.Right = 0; System.Drawing.Printing.PaperSize size = new System.Drawing.Printing.PaperSize(); size.RawKind = (int)PaperKind.B5; pg.PaperSize = size; DemorReport.SetPageSettings(pg); this.DemorReport.RefreshReport(); DemorReport.Reset(); }