Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PrintCashReport cashreport = new PrintCashReport();
- rptvwrcash.ReportSource = cashreport;
- ParameterFields paramfields = new ParameterFields();
- ParameterField type = new ParameterField();
- type.Name = "type";
- ParameterDiscreteValue dvtype = new ParameterDiscreteValue();
- dvtype.Value = DailySalesReportBL.typeofrpt;
- type.CurrentValues.Add(dvtype);
- paramfields.Add(type);
- rptvwrcash.ParameterFieldInfo = paramfields;
- //PrintCashReport cashreport = new PrintCashReport();
- cashreport.SetDataSource(ds);
- cashreport.SetParameterValue("type", DailySalesReportBL.typeofrpt);
- //rptvwrcash.ReportSource = cashreport;
- System.Drawing.Printing.PrintDocument printDocument = new System.Drawing.Printing.PrintDocument();
- cashreport.PrintOptions.PrinterName = printDocument.PrinterSettings.PrinterName;
- cashreport.PrintOptions.PrinterName = "EPSON TM-T88V Receipt";
- cashreport.PrintToPrinter(1, false, 0, 0);
- CRPT.SetParameterValue("smonth", Servercls.month);
- CRPT.SetParameterValue("sday", Servercls.day);
- CRPT.SetParameterValue("datevalue", Servercls.Datevalue);
- Report_Viewer.ReportSource = CRPT;
- ReportDocument CRPT = new ReportDocument();
- ParameterFields param = new ParameterFields();
- ParameterDiscreteValue paramdesc = new ParameterDiscreteValue();
- ParameterField paramfield = new ParameterField();
- paramfield.Name = "type";
- String APPPATH = Environment.CurrentDirectory + "\CrystalReport1.rpt";
- CRPT.Load(APPPATH);
- param = CRPT.ParameterFields;
- CRPT.ParameterFields.Add(paramfield);
- param["type"].CurrentValues.Clear();
- paramdecs.Value = "this is you crystal report parameter value value";
- param["type"].CurrentValues.Add(paramdecs);
- rv.ReportSource = CRPT;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement