Hi,
I have the following error.sqlexception was unhandled?Must declare the scalar variable "@invoiceno".
SqlCommand cmd=new SqlCommand ("select compname,compaddress,invoiceno,orderno,ondate,invoicedate,netamount,netvat,tamount from tbl_Report2 WHERE invoiceno=@invoiceno ",con );
Best,
Sudheep.