根據(jù)已有報(bào)告文件創(chuàng)建Web服務(wù)
Jun 21, 2016 am 09:14 AMweb|web服務(wù)|創(chuàng)建
Web服務(wù)可以被多個(gè)不同用戶所訪問,那么報(bào)告(reporting)又該是怎樣的呢?Crystal Reports已經(jīng)成為了Visual Studio中事實(shí)上的報(bào)告標(biāo)準(zhǔn),并且通過Visual Studio.NET現(xiàn)在已經(jīng)可以將報(bào)告文件轉(zhuǎn)換為Web服務(wù)。然后可以通過訪問這些Web服務(wù)來將報(bào)告發(fā)送給企業(yè)內(nèi)部或外部的用戶。本文中,我們將一起來看看如何根據(jù)已有的報(bào)告文件來創(chuàng)建Web服務(wù)。在本文第二部分,我們將分析如何使用所創(chuàng)建的Web服務(wù)。
注意:在本教程中我們將使用Visual Studio.NET 2003。在開始學(xué)習(xí)之前,請(qǐng)檢查你已經(jīng)安裝了Visual Studio以及所有的Crystal Reports組件,包括“Crystal Web services”相關(guān)選項(xiàng)。
打開Visual Studio,從Start菜單中選擇File > New > Project來創(chuàng)建新的ASP.NET Web Application。在本例中,我們將此項(xiàng)目命名為“ReportService”。
在創(chuàng)建項(xiàng)目之后,需要?jiǎng)?chuàng)建或添加已有的Crystal Report,我們將在后面將其轉(zhuǎn)換為Web服務(wù)。如果還沒有報(bào)告文件,可以使用同Visual Studio一同發(fā)布的示例報(bào)告,它位于C:Program FilesMicrosoft Visual Studio .NET 2003Crystal ReportsSamplesReports。在本例中,我們將使用在General Business示例文件夾中的“World Sales Report.rpt”。
要在項(xiàng)目中添加已有的報(bào)告,可以選擇Project > Add Existing Item,然后將對(duì)話框底部的下拉列表改為“Crystal Reports”,并選擇希望添加的報(bào)告文件。
下一步,在Solution Explorer選定報(bào)告,然后直接右鍵單擊報(bào)告。右鍵單擊菜單中會(huì)出現(xiàn)“Publish as Web service”選項(xiàng)。選擇此選項(xiàng)將產(chǎn)生一個(gè)ASMX文件,你可以通過右鍵單擊此文件(本例中為“World Sales ReportService.asmx”)并選擇“View in Browser”來對(duì)其進(jìn)行查看。
此預(yù)覽將顯示所有對(duì)Web服務(wù)允許進(jìn)行的操作,其中包括:
DrillGraph
Refresh
FindText
GetPage
GetTotaller
TestReport
GetGroupLevelData
FindGroup
GetLastPageNumber
GetReportInfo
Export
這里還會(huì)有一個(gè)鏈接鏈到使用WSDL(Web服務(wù)定義語言,Web Service Definition Language)所編寫的正式的Web服務(wù)定義。

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

Huawei? Watch GT 5 ? Watch GT 5 Pro ?????? ????? ?? 5.0.0.100(C00M01)? ? ????? ???? ????. ? ? ?????? ?? ???? ??????, ?? ??? ??? ?? ??? ??? ???????. ? ???

?? ??? ???? ??? ????(Katsuhiro Harada)? ?? ??? ??? ???? ?? ??? ????? ???? ??? ?? ????. TheGamer?? ????? Harada? ?????? ??? g? ???? ?? KFC Japan? ????? ????? ?????.

Garmin? ?? ?? ?????? ?? ??? ???? ???? ??? ?? ?? ?????. ?????, ??? Enduro 3, Fenix ??E ? Fenix ??8(Amazon?? ?? $1,099.99)? ?? ??? ??? ???? ?? ??? ????? 11.64? ??????.

Tesla? ?? ?? ?? ??(??) ?? 12.5.5? ???? ??? Foundation Series ?? ??? ??? ???? ??? ??? ? 10?? ?? ??? ??? Cybertruck FSD ??? ?????. ??

2024? 9? ?, Anker? Zolo 140W ???? ??????, ? ???? ??? ?????? ??? ??? ?? ????? ??? ? ??? ?????. ?? YouTube? Xiao Li TV?? ???? ??? ??? ???? ?? ?????.

???? ? ???? Mijia ??? ?? ??? ??? ?????. ? ??? ?? Youpin ????? ????? ??? ? ??? ?? ???? ?? ???? ????? ??????. ???? ??? ??? ?? ??? ??????.

???? ???? ??? '??? ???' ??? ??? ? ?? ??? ??????. ?? ? ? ?? ??? ??? Z ?? ??? ???? ?? ??? ?? ???????. ?? ??? S25 ???? ??? ??????.

10? ??? ??? ?? Manjaro? ???? ?? ??? ???? ??? ?? ??? ???? Linux ??? ? ??? ???? ?? ? ??? ????. ?? ?????, ??, ????? ??? ? Arch ?? ????
