ms access 2007 - How to select records from table for crystal report in vb.net? -
i having table named product in msaccess database, added crystal report project shows records table, want filter between 2 dates using ms access query don't know how this... source code is
dim report new crystaldecisions.crystalreports.engine.reportdocument dim cmd1 oledbcommand = new oledbcommand("select distinct invoice,productname,amount product date between '" & date1.text & "' , '" & date2.text & "'", con) myda = new oledbdataadapter(cmd1) mydataset = new dataset() myda.fill(mydataset, "outwardp") saledtereport.crystalreportviewer1.reportsource = mydataset saledtereport.showdialog()
i new crystal reports please me out of problem developers.. in advance.
you cannot set dataset report source report source should report have created , want show in report viewer , can add dataset report
dim rpt new pos_rpt_finalreportcr 'name of crystal report have created rpt.load(server.mappath("pos_rpt_finalreportcr.rpt")) crystalreportviewer1.reportsource = rpt rpt.setdatasource(myds) rpt.refresh()
hope helps you.
Comments
Post a Comment