• 具有一些固态继电器的报告是好的,但是如果最终用户可以不看到该报告,它是无用的,因此我们需要产生一种方法的观察报告通过一个小的应用程序。

    本报告观众应用程序将建成使用。网2.0的,而是可通过网服务提供的报告服务。 本报告所述服务的网络服务的行业标准的方式访问的信息通过肥皂。 这个工具的开发是一个小报告观众SQL服务器上报服务。

    该网服务提供的报告服务,提供一个界面,在本报告所述引擎获得的报告和该报告内的运作。 通过与报告服务网的服务,我们可以提取物可用的报告已经装载于本报告所述服务的服务器。

    当报告观众装载它将对该报告的服务器,这是可以通过应用程序配置文件,以检索一个列表中的现有报告和文件夹。

    该报告和文件夹,然后可以显示在报表内观察者作为一个列表,一旦选择了一个文件夹的报告观察者将会再去那个文件夹和返回的一个列表中的报告和文件夹。 重要的是要注意到,唯一可见的对象将显示,任何目的已设定要隐藏将不会显示在报告中的观察者。 这允许用于辅助的对象,就像的图像和数据来源,以隐藏的从终端用户。

    一次报告已选择的参数,用于该报告的动态显示,通过的报告观众,看着参表从报表服务器网页的服务和产生所需要的请求。

    一旦所有的参数,已被抓获的报告观众会要求的报告的服务器通过HTML检索的报告和通过的参数,这将允许对该报告的观察者来显示报告的用户,然后可以选择无论是印刷或出口的该报告是他们的愿望。

    这个代码的目的是提供查看SQL报告所述服务使用专门的肥皂API for渲染。 观众会嵌入作为一个自定义用户控制片段到调的形式。

    这份文件将帮助你如果你是在寻找更多的控制如何可以纳入报告及其参数的报告观众应用程序,可能会使用不同的验证方法于报告服务,通常如果你想要的东西多于什么你已经发现在请网服务器的控制。 所有的提示,对于参数创造动态,你可以容易地适用不同的格式或甚至隐藏其中的一些。

    使用的报告观众非常简单,只要提供的报告服务器WSDL的道路,报表位置的服务器,并如果需要报告的文件夹。

    设立应用程序配置文件中,Microsoft标准,附有网络服务,并提供应用程序参数,例的应用程序。配置文件开列如下:

    例C#代码使用和呼吁的报告观众:

    //Instantiate的对象

    诶。逻辑的。报告r=new诶。逻辑的。报告();

    //通过报告的文件夹,你要开始在,如果这不是供给然后根将用

    r.ReportFolder="/Photonet报告项目";

    //Load一个单一的形式,如果你离开这个集合的形式将显示

    报告。ReportName=ReportName;

    //显示的报告

    r.DisplayReports();

  • होने के एक नंबर SSRS रिपोर्ट है, सभी अच्छी तरह से और अच्छा है, लेकिन अगर अंत उपयोगकर्ताओं को नहीं देख सकते हैं, रिपोर्ट यह बेकार है, इसलिए हम की जरूरत है उत्पन्न करने के लिए एक विधि के लिए देख के माध्यम से रिपोर्ट के लिए एक छोटे से आवेदन है ।

    रिपोर्ट व्यूअर के अनुप्रयोग का निर्माण किया जाएगा का उपयोग सी# .NET 2.0, और विन्यास द्वारा वेब सेवाओं द्वारा आपूर्ति की रिपोर्टिंग सेवाओं. रिपोर्टिंग सेवाएँ वेब सेवाओं के लिए एक उद्योग मानक तक पहुँचने का रास्ता के माध्यम से जानकारी साबुन । इस उपकरण के लिए विकसित किया गया था करने के लिए हो सकता है एक छोटे से रिपोर्ट व्यूअर के लिए SQL Server रिपोर्टिंग सेवा.

    वेब सेवाओं द्वारा आपूर्ति की रिपोर्टिंग सेवाएं प्रदान एक अंतरफलक में रिपोर्टिंग इंजन के लिए पहुँच प्राप्त करने के लिए रिपोर्ट और रिपोर्ट के भीतर का कामकाज. द्वारा interfacing के लिए रिपोर्टिंग सेवाएँ वेब सेवाओं हम कर सकते हैं निकालने के लिए उपलब्ध किया गया है कि रिपोर्ट पर लोड करने के लिए रिपोर्टिंग सेवाएँ सर्वर पर ।

    जब रिपोर्ट व्यूअर भरी हुई है, यह संवाद करने के लिए रिपोर्ट सर्वर है, जो विन्यास के माध्यम से आवेदन विन्यास फाइल को पुनः प्राप्त करने के लिए उपलब्ध की एक सूची रिपोर्ट और फ़ोल्डर्स.

    रिपोर्ट और फ़ोल्डरों कर सकते हैं तो प्रदर्शित किया जा सकता के भीतर रिपोर्ट व्यूअर के रूप में, एक सूची का चयन करने पर एक फ़ोल्डर में रिपोर्ट व्यूअर जाएगा, तो में जाने के लिए है कि फ़ोल्डर और वापसी की एक सूची रिपोर्ट और फ़ोल्डर्स. यह नोट करना महत्वपूर्ण है कि केवल दृश्यमान वस्तुओं को प्रदर्शित किया जाएगा, किसी भी वस्तुओं है कि सेट किया गया है करने के लिए प्रदर्शित नहीं किया जाएगा में रिपोर्ट व्यूअर. यह अनुमति देता है के लिए सहायक वस्तुओं की तरह, छवियों और डेटा स्रोतों, से छिपा हो के लिए अंत उपयोगकर्ताओं के लिए है ।

    एक बार एक रिपोर्ट का चयन किया गया है मापदंडों के लिए है कि रिपोर्ट कर रहे हैं गतिशील रूप से प्रदर्शित द्वारा रिपोर्ट व्यूअर पर देख रहे हैं, पैरामीटर सूची से रिपोर्ट सर्वर वेब सेवा और पैदा करने की आवश्यकता का अनुरोध करता है ।

    एक बार सभी मापदंडों कब्जा कर लिया गया है की रिपोर्ट व्यूअर एक अनुरोध बनाने के लिए रिपोर्ट सर्वर के माध्यम से HTML पुनः प्राप्त करने के लिए रिपोर्ट और पारित मापदंडों, यह अनुमति देगा के लिए रिपोर्ट व्यूअर को प्रदर्शित करने के लिए रिपोर्ट करने के लिए उपयोगकर्ता है, जो कर सकते हैं तो चुनाव के लिए या तो प्रिंट या निर्यात की रिपोर्ट है कि वे इतनी इच्छा है ।

    इस कोड प्रदान करने का इरादा है दर्शक के लिए SQL रिपोर्टिंग सेवा का उपयोग करता है कि विशेष रूप से साबुन के लिए एपीआई प्रतिपादन है । दर्शक एम्बेडेड हो जाएगा के रूप में एक कस्टम उपयोगकर्ता नियंत्रण टुकड़ा में बुला के रूप में.

    इस दस्तावेज़ में मदद मिलेगी आप अगर आप के लिए देख रहे हैं पर अधिक नियंत्रण कैसे आप को एकीकृत कर सकते हैं एक रिपोर्ट और उसके मापदंडों में रिपोर्ट व्यूअर के अनुप्रयोग का उपयोग कर सकते हैं विभिन्न प्रमाणीकरण तरीकों की तुलना में रिपोर्टिंग सेवाओं, आम तौर पर अगर आप कुछ और अधिक चाहते हैं की तुलना में क्या आप पहले से ही मिल में ReportViewer वेब सर्वर नियंत्रण. सभी संकेतों के लिए मापदंडों को गतिशील बनाया जाता है और आप कर सकते हैं आसानी से लागू विभिन्न स्वरूपण या यहां तक कि उनमें से कुछ छिपा है ।

    का उपयोग कर रिपोर्ट व्यूअर बहुत आसान है, बस की आपूर्ति, रिपोर्ट सर्वर WSDL पथ, के स्थान रिपोर्ट सर्वर और अगर आप की जरूरत है रिपोर्ट करने के लिए फ़ोल्डर.

    स्थापना के आवेदन विन्यास फाइल, इस प्रकार Microsoft मानक के लिए संलग्न करने के लिए वेब सेवाओं, और आवेदन उपलब्ध कराने के मापदंडों, एक app का एक उदाहरण है । config फाइल को नीचे सूचीबद्ध है:

    उदाहरण के लिए C# कोड का उपयोग करने के लिए और बुला रिपोर्ट व्यूअर:

    //वस्तु इन्स्तांत

    एह है । ReportViewer.रिपोर्ट r = नई एह है । ReportViewer.रिपोर्ट();

    //पास रिपोर्ट फ़ोल्डर आप चाहते हैं करने के लिए शुरू में, अगर इस की आपूर्ति नहीं है, तो रूट का उपयोग किया जाएगा

    आर.ReportFolder = "/Photonet रिपोर्ट परियोजना";

    //एक ही लोड के रूप में, अगर आप इस बाहर छोड़ एक संग्रह रूपों में प्रदर्शित किया जाएगा

    रिपोर्ट.ReportName = ReportName;

    //प्रदर्शन रिपोर्ट

    आर.DisplayReports();

  • Having a number of SSRS reports is all well and good, but if the end users can not see the reports it is useless, therefore we need to generate a method of viewing the reports via a small application.

    The Report Viewer application will be built using C# .NET 2.0, and is configurable by the Web Services supplied by Reporting Services. The Reporting Services Web Services is an industry standard way of accessing information via SOAP. This tool was developed to be a small report viewer for SQL Server Reporting Services.

    The Web Services supplied by Reporting Services provide an interface in the reporting engine to gain access to the reports and the report inner workings. By interfacing to the Reporting Services Web Services we can extract the available reports that have been loaded on to the Reporting Services Server.

    When the Report Viewer is loaded it will communicate to the Report Server, which is configurable via the application configuration file, to retrieve a list of available reports and folders.

    The reports and folders can then be displayed within the Report Viewer as a list, upon selecting a folder the Report Viewer will then go in to that folder and return a list of reports and folders. It is important to note that only visible objects will be displayed, any objects that have been set to hidden will not be displayed in the Report Viewer. This allows for ancillary objects, like images and data sources, to be hidden from the end users.

    Once a report has been selected the parameters for that report are dynamically displayed by the Report Viewer, looking at the parameter list from the Report Server Web Services and generating the required requests.

    Once all the parameters have been captured the Report Viewer will make a request to the Report Server via HTML to retrieve the report and pass the parameters, this will allow for the Report Viewer to display the report to the user, who can then elect to either print or export the report is they so desire.

    This code is intended to provide viewer for SQL Reporting Services that uses exclusively the SOAP API for rendering. The Viewer will be embedded as a Custom User Controls fragment into the calling form.

    This document will help you if you are looking for more control over how you can integrate a report and its parameters into the Report Viewer application that may use different authentication methods than Reporting Services, usually if you want something more than what you already find in the ReportViewer web server control. All prompts for parameters are created dynamically and you can easily apply different formatting or even hide some of them.

    Using the Report Viewer is very simple, just supplying the, Report Server WSDL path, the location of the Report Server and if you need to the report folder.

    Setting up the application configuration file, follows the Microsoft standard for attaching to Web Services, and providing application parameters, an example of an app.config file is listed below:

    Example C# code for using and calling the Report Viewer:

    //Instantiate the object

    EH.ReportViewer.Reports r = new EH.ReportViewer.Reports();

    //Pass the report folder you wish to start in, if this is not supplied then the root will be used

    r.ReportFolder = "/Photonet Reports Project";

    //Load a single form, if you leave this out a collection of forms will be displayed

    reports.ReportName = ReportName;

    //Display the reports

    r.DisplayReports();