public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { transaksiugd rpt = new transaksiugd(); rpt.Site = this.Site; return(rpt); }
public TransaksiUGD() { InitializeComponent(); this.MyCrystalReportViewer.BackColor = System.Drawing.Color.AliceBlue; crystal = new transaksiugd(); load_db(crystal); }
private void load_pass(transaksiugd crystal, string val) { ParameterFieldDefinitions crParameterFieldDefinitions; ParameterFieldDefinition crParameterFieldDefinition; ParameterValues crParameterValues = new ParameterValues(); ParameterDiscreteValue crParameterDiscreteValue = new ParameterDiscreteValue(); crParameterDiscreteValue.Value = val; crParameterFieldDefinitions = crystal.DataDefinition.ParameterFields; crParameterFieldDefinition = crParameterFieldDefinitions["pasien"]; crParameterValues = crParameterFieldDefinition.CurrentValues; crParameterValues.Clear(); crParameterValues.Add(crParameterDiscreteValue); crParameterFieldDefinition.ApplyCurrentValues(crParameterValues); }
private void load_db(transaksiugd crystal) { TableLogOnInfo crtableLogoninfo = new TableLogOnInfo(); ConnectionInfo crConnectionInfo = new ConnectionInfo(); Tables CrTables; crConnectionInfo.ServerName = "127.0.0.1"; crConnectionInfo.DatabaseName = ""; crConnectionInfo.UserID = "basdat"; crConnectionInfo.Password = "******"; CrTables = crystal.Database.Tables; foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables) { crtableLogoninfo = CrTable.LogOnInfo; crtableLogoninfo.ConnectionInfo = crConnectionInfo; CrTable.ApplyLogOnInfo(crtableLogoninfo); } }
private void load_view(transaksiugd crystal) { MyCrystalReportViewer.ReportSource = crystal; MyCrystalReportViewer.Refresh(); }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { transaksiugd rpt = new transaksiugd(); rpt.Site = this.Site; return rpt; }