cmd.commandtext="select fname,lname,startDate,EndDate from personel,leave where personid=id and id='"+txtID.text+"'"; da.selectcommand=cmd; da.fill(dt); form1 newform=new form1(); crystalreport1 cr=new crystalreport1(); cr.setdatasource(dt); newform.crystalreportviewer1.reportsource=cr; newform.show();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)