资源描述:
《net环境下水晶报表使用总结(summary of the use of crystal reports in net environment)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、net环境下水晶报表使用总结(Summaryoftheuseofcrystalreportsinnetenvironment)ThispaperiscontributedbyxiangyanppSummaryoftheuseofcrystalreportsin.NETenvironmentCrystalreportisanexcellentreportdevelopmenttool,simple,easytouse,powerfulFirst,useCrystalReportViewertopreviewTheCrystalReportViewercont
2、rolallowsyoutoviewCrystalReportinyourapplication.TheReportSourcepropertyisusedtosetupwhichreporttoview.Afterthepropertyisset,thereportisdisplayedintheviewer.ReportsourcecanbethepathofReportDocument,reportfile,orstrongtypereport.1.openthetoolboxanddragaCrystalReportViewerontothefor
3、m.WecallitrptVew.2.draganddropoperationstoadjusttheWindowsformviewertothedesiredsizeandmoveittothedesiredlocation.3.whenyouruntheapplication,thereportwillbedisplayedintheviewer.Three,createnewreports1.pointto"add",click"addnewitem"".2.intheAddNewItemdialogbox,selectCrystalReportfr
4、omthetemplatearea,namethereportasrptClient,andclickopen".3.intheCrystalReportlibrary,selectoneofthefollowingoptions:UsethereportexperttoguideyoutocompletethecreationprocessofthereportandaddyourchoicetoCrystalReportDesigner.OpenCrystalReportDesignerasblankreport.Fromexistingreports
5、-createnewreportsthatarethesameasthespecifiedreportdesign.NoticethattheCrystalReportlibrarycontainsanumberofexpertsthatcanguideyouthroughthecreationofseveralspecifictypesofreports.Youmightwanttouseanexperttocreatetheinitialreporttodeterminewhichreportingmethodisappropriateforyourn
6、eeds.4.clicktheOKbutton.Ifyouchoosetousethereportexpert,youwillhavethereportexpertdialogboxwithadataresourcemanager.Selecttherequireddataforeachfolder,completetheoperationonthetabtabofthereportexpert,andthenclickFinishtoaccessCrystalReportDesignerandyourreportFour.Doyouneedtodynam
7、icallysetthedatasource?CrystalReportsconnectswithdatabasethroughdatabasedriver.Eachdriveriswrittentobeabletohandlespecificdatabasetypesordatabaseaccesstechniques.PullandpushmodelInordertoprovidedeveloperswiththemostflexibledataaccessmethod,CrystalReportsdatabasedriversaredesigneda
8、spullmodelsandpushmodelsthatcanpr