Crystal-Reports-10-Report-Integration-Web-Based-Ap

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

WhatYouNeedtoUseThisBookTherearesoftwareandknowledgerequirementsforyoursuccessfulprogressthroughthisbook.Software❑MicrosoftWindows2000orXPProfessional❑VisualStudio.NETProfessionalorhigher❑SQLServer2000orMSDEKnowledge❑SomeknowledgeoftheVisualStudio.NETdevelopmentenvironmentisassumed❑SomeverybasicknowledgeofSQLisassumedSummaryofContentsIntroduction1Chapter1:CrystalReports.NETOverview9Chapter2:GettingStartedwithCrystalReports.NET33Chapter3:ReportIntegrationforWindows-BasedApplications79Chapter4:ReportIntegrationforWeb-BasedApplications113Chapter5:CreatingXMLReportWebServices151Chapter6:Workingwith.NETData167Chapter7:FormulasandLogic201Chapter8:WorkingwiththeCrystalReportsEngine233Chapter9:DistributingYourApplication267AppendixA:Troubleshooting285AppendixB:MigratingApplicationstoCrystalReports.NET295AppendixC:Crystalvs.BasicSyntax309Index315ReportIntegrationforWeb-BasedApplicationsWhileWindowsapplicationswillstillcontinuetobepopularforsometimetocome,thegrowingtrendinapplicationdevelopmentisforweb-basedapplications.Inthischapter,wearegoingtolookathowtointegrateandviewreportsfromwithinweb-basedapplicationscreatedwithVisualStudio.NET.Inaddition,wewilllookatsomeoftherun-timecustomizationsthatcanbemadetoyourreports,aswellassomeissuesaroundwebapplicationdeployment.Thiswillconsistof:❑DeterminingthecorrectObjectModel❑CrystalDecisions.Webnamespace❑UsingtheCrystalWebFormsViewer❑CustomizingtheCrystalWebFormsViewer❑PassinginformationtotheWebFormsViewerAswegothroughthischapter,wewillbebuildingformsforuseinweb-basedreportingapplications,whichdemonstratemanyoftheCrystalReports.NETfeaturesthatcanbeusedinyourownwebapplications.ObtainingtheSampleFilesAlltheexamplereportsandcodeusedinthischapterareavailablefordownload.Thedownloadfilecanbeobtainedfrom(andifyouaren't,yousoonwillbe!).ASP.NETisnotreallyalanguage,perse,butratherasetofinterrelatedtechnologiesandcomponentsthatcometogetherinoneframeworktodeliverrobustwebapplications.Asadeveloper,youprobablyalreadyknowthatthemostimportantpartofcreatinganapplicationisintheplanninganddesignoftheapplication,beforethecodingactuallystarts.TheintegrationofCrystalReportsintowebapplicationsisnodifferent–alittlebitofplanninggoesalongway.Thefirstthingwewillneedtodo,beforewewriteasinglelineofcode,istodeterminewhattypeofreportswewanttodeliverinourwebapplicationandhowtheyaregoingtobeused.Aretheylistingorgroupedreports?Aretheyusedtocheckdataentryinaformbeforesubmittingit?Whatwillthereportslooklike?WilluserswanttoprintthereportsfromtheirbrowserorexporttoanotherformatsuchasPDF,RTF,orExcel?Allofthesequestionscanhelpyougathertheinformationyouneedtodesignyourreportsandgetahandleonhowtheyaregoingtobedelivered.Note:Evenifyoudon'thaveyourownreportstoworkwith,youcanstillworkthroughthischapter–samplereportsareavailableinC:\ProgramFiles\VisualStudio.NET\CrystalReports\Samples\orinthedownloadfilesforthischapter.Onceyouunderstandthetypeoffunctionalityyouwouldliketodelivertotheuser,youcansitdownandstartplanninghowCrystalReportswillbeintegratedintoyourwebapplication.CrystalReports.NETusesafeature-richreportviewer,availableoutofthebox,whichcanbeinsertedontoaWebFormandusedtoviewreports.ThevieweritselfhasfeaturesthataresimilartotheWindowsformviewerandhasanextensiveobjectmodel,allowingyoutosetthesourceofthereport,theappearanceofthevieweritself,andwhathappenswhendifferenteventsfire,amongotherthings.Whenworkingwithwebapplications,mostusersseemtopreferthatwepopupanadditionalwindowtodisplayreports.ThisallowsthemtohavethefullbrowserareatoviewthereportandwecanpasspropertieslikethereportsourceandviewersettingstothisWebForm.Thisallowsustoreuseonereportviewingformthroughoutthewebapplicationandjustsetthepropertiesweneedeachtime.Theoptionsforworkingwithreportsareendless–basedonauser'saccessrightsinyourapplication,youcouldsetaspecificrecordselectionformulaorallowtheusertosetandretainparameterstheyusefrequently,orevenestablishprofilesoftheirfavoritereports,sotheycanrunitwithalloftheirsettingsinplacewithoneclick.ReportIntegrationforWeb-BasedApplications115LikeintegratingreportingintoWindowsapplications,thereportintegrationshouldbedrivenbytheuser'srequirements,buthowthesefeaturesaredeliveredisuptoyou.Asyougothroughtherestofthechapter,thinkabouthowthedifferentcustomizationfeaturescouldbeusedinyourdevelopment.Ifyouarenotatapointwhereyoucanintegratethesefeaturesintoyourapplication,eachoftheproperties,methods,andeventsaregroupedtogetherbyfunctiontomakeiteasiertocomebackandlookthemup.ABriefHistoryofCrystalW

1 / 40
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功