Hai everyone,
Im using crystal report for my invoice page... in that Datas are binding but the reports are not shown in the webpage
can anyone pls help me to resolve this prblm...
My code
protected void Page_Load(object sender, EventArgs e) { OracleConnection conn = new OracleConnection(globalconnection.OracleConnectionString); string selectstring = "SELECT SENDERNAME,SENDERADDRESS,SENDERMOBILENO,SENDERPINCODE,RECEIVERNAME,RECEIVERPINCODE,RECEIVERADDRESS,RECEIVERMOBILE,COURIERWEIGHT,COURIERDIMWIDTH,COURIERDIMHEIGHT,COURIERDIMLENGTH,COURIERAMOUNT,TOTALAMOUNT FROM TOTAL_SHIPMENT_OVERALL"; string Path = "invoicesample.rpt"; string DataFill = "checkdata"; conn.Open(); OracleDataAdapter adp = new OracleDataAdapter(selectstring, conn); DataSet ds = new DataSet(); adp.Fill(ds, DataFill); ds.Tables[0].TableName = "checkdata"; adp.Fill(ds, DataFill); rptdoc.Load(Server.MapPath(Path)); rptdoc.SetDataSource(ds); CrystalReportViewer1.ReportSource = rptdoc; conn.Close(); }
thanks in advance...