This document provides instructions on using the FastReport.Net library for generating reports in Windows Forms applications. It covers topics like:
- Adding the Report component to a Visual Studio project and designing a report visually or programmatically.
- Storing and loading reports from files, resources, databases or as .NET classes.
- Registering application data in a report and passing parameters.
- Additional configuration options like replacing file dialogs and customizing the preview window.
It also includes a chapter on using FastReport.Net for ASP.NET applications, covering components like the WebReport and considerations for medium trust environments. There is a brief section on using FastReport.Net in WCF services
Crystal report generation in visual studio 2010Slideshare
This document provides steps to generate Crystal Reports in Visual Studio 2010 using a Microsoft Access database. The steps include: 1) opening Visual Studio 2010, adding a report viewer form, and connecting to the Access database; 2) designing a new report using the database configuration wizard to select the dataset and fields; and 3) viewing the final report with data from the Access database displayed.
Tutorial on how to load images in crystal reports dynamically using visual ba...Aeric Poon
This tutorial will show you how to create a Visual Basic 6 project which will generate a report using Seagate Crystal Reports 8.5 Developer Edition. You will save the path of the image files in a MS Access database where it is protected by password. This project will use an external Crystal Report file and will be previewed using Crystal Viewer control.
Crystal Reports allows users to generate reports from various data sources. It can create, print, and preview reports. Crystal Reports is compatible with development environments like VB.NET and SQL Server. The document then outlines 8 steps to develop a Crystal Report from a database by connecting to a data source, selecting tables, dragging and dropping fields, and previewing the report. Crystal Reports can link multiple databases and display relationships between tables.
Crystal Reports is a business intelligence tool used to design and generate reports from various data sources. It is integrated with Visual Studio .NET and can pull data from a SQL Server database using ADO.NET into a DataSet, and then transfer the data to CrystalReportViewer to display on an ASP.NET web page. There are two methods to publish data to a Crystal Report - the pull method queries the database directly, while the push method shapes the data in code before passing it to the report. Steps for creating a basic Crystal Report include connecting to a database, selecting tables, dragging fields into the report, and previewing the output.
The document discusses alternatives to using SAP servers for reporting, including using Crystal Reports or free software. It analyzes using existing Crystal Reports templates but notes limitations without the SAP server. Windward Studios is presented as a solution that allows template application without errors and supports exporting to databases. The conclusion is that Windward Studios provides advantages over Crystal Reports like avoiding SAP servers and support for cross-platform use in Microsoft products.
This document provides an overview and instructions for creating reports using Crystal Reports. It discusses the benefits of Crystal Reports such as creating various types of reports from any data source. It then provides a step-by-step process for creating a basic report which includes connecting to a database, selecting fields, grouping and summarizing data, and adding style. The document also briefly discusses incorporating Crystal Reports into Visual Basic applications.
This document provides release notes for Oracle9i Reports Developer Release 2 (9.0.2) from April 2002. It describes general issues, configuration issues, UI issues, and workarounds. Key points include deprecated features from earlier versions, issues with pluggable data sources, configuration of the Reports_CLASSPATH variable, and enabling source control in the Windows UI. The document provides technical details and troubleshooting guidance for using Oracle9i Reports Developer.
ASP.Net is a web development platform that provides a programming model, infrastructure, and services for building robust web applications. It uses HTTP to enable two-way communication between a browser and server. ASP.Net applications are compiled code written in languages like C# and VB.Net that can use classes in the .Net framework. The ASP.Net lifecycle involves initializing and loading pages, handling events, rendering output, and unloading pages. Key stages include initialization, loading, validation, handling postback events, and rendering.
Crystal report generation in visual studio 2010Slideshare
This document provides steps to generate Crystal Reports in Visual Studio 2010 using a Microsoft Access database. The steps include: 1) opening Visual Studio 2010, adding a report viewer form, and connecting to the Access database; 2) designing a new report using the database configuration wizard to select the dataset and fields; and 3) viewing the final report with data from the Access database displayed.
Tutorial on how to load images in crystal reports dynamically using visual ba...Aeric Poon
This tutorial will show you how to create a Visual Basic 6 project which will generate a report using Seagate Crystal Reports 8.5 Developer Edition. You will save the path of the image files in a MS Access database where it is protected by password. This project will use an external Crystal Report file and will be previewed using Crystal Viewer control.
Crystal Reports allows users to generate reports from various data sources. It can create, print, and preview reports. Crystal Reports is compatible with development environments like VB.NET and SQL Server. The document then outlines 8 steps to develop a Crystal Report from a database by connecting to a data source, selecting tables, dragging and dropping fields, and previewing the report. Crystal Reports can link multiple databases and display relationships between tables.
Crystal Reports is a business intelligence tool used to design and generate reports from various data sources. It is integrated with Visual Studio .NET and can pull data from a SQL Server database using ADO.NET into a DataSet, and then transfer the data to CrystalReportViewer to display on an ASP.NET web page. There are two methods to publish data to a Crystal Report - the pull method queries the database directly, while the push method shapes the data in code before passing it to the report. Steps for creating a basic Crystal Report include connecting to a database, selecting tables, dragging fields into the report, and previewing the output.
The document discusses alternatives to using SAP servers for reporting, including using Crystal Reports or free software. It analyzes using existing Crystal Reports templates but notes limitations without the SAP server. Windward Studios is presented as a solution that allows template application without errors and supports exporting to databases. The conclusion is that Windward Studios provides advantages over Crystal Reports like avoiding SAP servers and support for cross-platform use in Microsoft products.
This document provides an overview and instructions for creating reports using Crystal Reports. It discusses the benefits of Crystal Reports such as creating various types of reports from any data source. It then provides a step-by-step process for creating a basic report which includes connecting to a database, selecting fields, grouping and summarizing data, and adding style. The document also briefly discusses incorporating Crystal Reports into Visual Basic applications.
This document provides release notes for Oracle9i Reports Developer Release 2 (9.0.2) from April 2002. It describes general issues, configuration issues, UI issues, and workarounds. Key points include deprecated features from earlier versions, issues with pluggable data sources, configuration of the Reports_CLASSPATH variable, and enabling source control in the Windows UI. The document provides technical details and troubleshooting guidance for using Oracle9i Reports Developer.
ASP.Net is a web development platform that provides a programming model, infrastructure, and services for building robust web applications. It uses HTTP to enable two-way communication between a browser and server. ASP.Net applications are compiled code written in languages like C# and VB.Net that can use classes in the .Net framework. The ASP.Net lifecycle involves initializing and loading pages, handling events, rendering output, and unloading pages. Key stages include initialization, loading, validation, handling postback events, and rendering.
This shows the some screen shots of the MS Project database that has been implemented within the Division of Medical Countermeasure Strategy and Requirements
Visual Basic provides a convenient method for building user interfaces compared to other programming languages. It allows drawing buttons, text boxes and other controls onto a form and adding code to handle user interaction. More complex controls can execute commands, have active properties, and support many event types. Visual Basic can also interface with code written in C for efficiency.
This document provides tutorials for building web applications using C# and ASP.NET Web Application projects in Visual Studio 2005. The first tutorial describes creating a new project, adding controls to a default page, building and running the project. The second tutorial explains the code-behind model and how Visual Studio 2005 splits code generation across partial class files. The third tutorial demonstrates building pages within these projects.
An application for regression testing of the PVS-Studio and CppCat analyzers.
Implementing the mechanism of regression testing of the static code analyzers PVS-Studio and CppCat.
Ensuring that tests are run on a large number of open-source C/C++ projects.
Ensuring testing of the analyzers’ operation under all the supported Visual Studio versions.
Providing convenient handling of the differences list, quick view feature, apply changes feature, and so on.
Oracle Fusion Payroll tracing for debuggingFeras Ahmad
Logging in Oracle Fusion Global Payroll allows users to enable detailed logging for payroll processes to help debug issues. Users can set logging parameters in a configuration group, run an affected payroll process, then view the log file to troubleshoot issues. It is important to disable logging after issue resolution to avoid performance impacts.
Cognos Report Studio is a reporting tool that allows users to create complex reports using data from a Cognos package. This document introduces Report Studio and provides training objectives on how to open Report Studio, add data to create reports, run reports, manipulate data using filters, prompts, drill-throughs and more. It also covers creating different types of reports like lists, crosstabs, charts and advanced reports like master-detail, parent-child and templates.
The document discusses several key concepts in Pega including:
1) The Process API allows starting and advancing flows without user forms through services and agents.
2) List rules determine which properties are copied when using the Obj-List method to improve efficiency.
3) If a data class is modified, the associated list rule and data table may need to be updated.
4) Covers automatically lock related work objects to ensure single-threaded access when values are derived.
This document provides an overview of the Business Intelligence and Reporting Tool (BIRT). It discusses BIRT's architecture and components, how to connect to data sources and create reports using the report designer, and how to preview and deploy reports. Key features covered include working with charts, cross tabs, groups, filters, and parameters.
1) The document provides instructions on how to use SolidPlant 3D software to create 3D process plant designs.
2) It describes how to launch the software, create and open projects, and explains the main user interface elements.
3) Detailed steps are given to create structures using commands like Structure 3D Grid, Insert Structure Member, and Stair. Equipment creation is demonstrated using the Pump template.
This document provides instructions for reformatting a document delivered in 8.5x11 US letter format to print on A4 paper. It outlines four simple steps: 1) Open the document in Word and select A4 paper size, 2) Update the second page, 3) Reindex the last page, and 4) Save under a new name for convenience. The document also introduces automated testing and the TestComplete tool for creating tests.
The document describes creating components and component processes in UrbanCode Deploy. It includes the following steps:
1. Create three components for the JPetStore application - one each for the app, database, and web files. Import versions of each from the file system.
2. Create a deployment process for the web component that includes steps to clean the working directory and download the latest version of the web component artifacts.
3. Similar processes will be created for the other components and then an application process will call the component processes to deploy the full application.
Creating Workflows Windows Share Point ServicesLiquidHub
This document provides instructions for creating workflows in Windows SharePoint Services using Office SharePoint Designer 2007 and Visual Studio. It describes building a workflow to automate a building permit application process. The workflow assigns a review task when an application is submitted and sends an approval email with the permit amount. The exercises guide the user through setting conditions and actions in SharePoint Designer and testing the workflow by submitting an application and reviewing the assigned task.
The document describes creating components and component processes in UrbanCode Deploy. It includes the following steps:
1. Create three components representing the JPetStore application, database, and web files stored on the UrbanCode Deploy server.
2. Create component processes to deploy each component. This includes adding steps to clean the working directory, download the component artifacts, and place the artifacts in the correct folder.
3. Delete the newest versions of the database and web components so they can be updated later.
The components and processes are now ready to be used to deploy the JPetStore application. An application process will call the component processes to deploy each piece.
This document provides instructions for developing SQL Server Reporting Services (SSRS) reports for Microsoft Dynamics AX. It covers SSRS installation and configuration, editing existing reports, developing new query-based and report data provider (RDP)-based reports using Visual Studio, previewing and deploying reports, and using controller classes to modify report behavior. Key steps include creating AX queries and temporary tables, developing report datasets and designs in Visual Studio, and deploying reports for viewing in the browser or launching from AX. Controller classes can modify report queries, parameters, and contracts before report execution.
Cis407 a ilab 3 web application development devry universitylhkslkdh89009
This document provides instructions for completing iLab 3 of the CIS407A course at Devry University. The lab involves adding user activity monitoring functionality to an existing payroll system website. Students are instructed to create a database table to store user activity data, add code to save activity data to the table, and display the activity data on a new web form. Validation logic is also added to an existing personnel form to validate field values. Upon completing the tasks and verifying the functionality, students are to submit all project files.
The document discusses workflow development in Dynamics AX 2012. Key points include:
1. The workflow architecture in AX 2012 allows hosting WCF services directly on the AOS and no longer requires a separate workflow component installation. Workflow templates can now be configured at the company or cross-company level.
2. Workflows can now be developed using wizards that generate the necessary classes and menu items. The document provides steps to develop a customer approval workflow using these wizards.
3. A generic class is provided to activate workflows on submit and resubmit events for all workflows in AX. The document includes steps to test the new customer approval workflow.
This document provides an overview of using the PVS-Studio static code analysis tool for Visual C++ projects in Visual Studio. It describes how to install and configure PVS-Studio, analyze a project, work with diagnostic messages, use the incremental analysis feature to check for errors as code is written, and suppress false positives. The tool integrates directly into Visual Studio and can detect many types of errors like typos, logic errors, and security issues.
This document provides information about creating and running object-oriented programs in C# using Visual Studio. It discusses the .NET framework and different types of applications that can be created. It then provides step-by-step instructions on creating a simple Windows forms application with a button and message box, and a basic web application with a "Hello World" header. It also discusses opening and editing pages, building and running projects, and customizing project properties.
This chapter discusses SQL Server Reporting Services (SSRS) which is the primary framework for developing reports in Microsoft Dynamics AX 2012. It describes installing SSRS and the Reporting Services Extensions as part of the Microsoft Dynamics AX 2012 installation. The chapter also explains the tools used for report development including Visual Studio and SQL Server Reporting Services, and the process for developing reports in Visual Studio by defining data sources and report designs.
The document provides an overview of the Report Conversion Tool, which converts SAP BusinessObjects Desktop Intelligence reports to Web Intelligence format. Key points include:
- The Report Conversion Tool converts Desktop Intelligence reports to the Web Intelligence format supported in SAP BusinessObjects BI platform 4.0 Feature Pack 3.
- Reports are retrieved from the source CMS and can be published back to the same or different folders in the destination CMS after conversion.
- Reports are assigned a status of Fully Converted, Partially Converted, or Not Converted depending on which Desktop Intelligence features can be converted.
- New features like Query on Query are fully supported in the conversion to Web Intelligence.
The document discusses interfacing with end users in ASP.NET. It provides two programming models - Web Forms and WCF Services. Web Forms enables creating user interfaces and application logic, while WCF Services enables remote server-side functionality access. It also discusses creating a basic web form in ASP.NET that displays the current date and time when a button is clicked to demonstrate the Web Forms model. Common controls like labels, textboxes, buttons are also summarized with their properties and events.
This shows the some screen shots of the MS Project database that has been implemented within the Division of Medical Countermeasure Strategy and Requirements
Visual Basic provides a convenient method for building user interfaces compared to other programming languages. It allows drawing buttons, text boxes and other controls onto a form and adding code to handle user interaction. More complex controls can execute commands, have active properties, and support many event types. Visual Basic can also interface with code written in C for efficiency.
This document provides tutorials for building web applications using C# and ASP.NET Web Application projects in Visual Studio 2005. The first tutorial describes creating a new project, adding controls to a default page, building and running the project. The second tutorial explains the code-behind model and how Visual Studio 2005 splits code generation across partial class files. The third tutorial demonstrates building pages within these projects.
An application for regression testing of the PVS-Studio and CppCat analyzers.
Implementing the mechanism of regression testing of the static code analyzers PVS-Studio and CppCat.
Ensuring that tests are run on a large number of open-source C/C++ projects.
Ensuring testing of the analyzers’ operation under all the supported Visual Studio versions.
Providing convenient handling of the differences list, quick view feature, apply changes feature, and so on.
Oracle Fusion Payroll tracing for debuggingFeras Ahmad
Logging in Oracle Fusion Global Payroll allows users to enable detailed logging for payroll processes to help debug issues. Users can set logging parameters in a configuration group, run an affected payroll process, then view the log file to troubleshoot issues. It is important to disable logging after issue resolution to avoid performance impacts.
Cognos Report Studio is a reporting tool that allows users to create complex reports using data from a Cognos package. This document introduces Report Studio and provides training objectives on how to open Report Studio, add data to create reports, run reports, manipulate data using filters, prompts, drill-throughs and more. It also covers creating different types of reports like lists, crosstabs, charts and advanced reports like master-detail, parent-child and templates.
The document discusses several key concepts in Pega including:
1) The Process API allows starting and advancing flows without user forms through services and agents.
2) List rules determine which properties are copied when using the Obj-List method to improve efficiency.
3) If a data class is modified, the associated list rule and data table may need to be updated.
4) Covers automatically lock related work objects to ensure single-threaded access when values are derived.
This document provides an overview of the Business Intelligence and Reporting Tool (BIRT). It discusses BIRT's architecture and components, how to connect to data sources and create reports using the report designer, and how to preview and deploy reports. Key features covered include working with charts, cross tabs, groups, filters, and parameters.
1) The document provides instructions on how to use SolidPlant 3D software to create 3D process plant designs.
2) It describes how to launch the software, create and open projects, and explains the main user interface elements.
3) Detailed steps are given to create structures using commands like Structure 3D Grid, Insert Structure Member, and Stair. Equipment creation is demonstrated using the Pump template.
This document provides instructions for reformatting a document delivered in 8.5x11 US letter format to print on A4 paper. It outlines four simple steps: 1) Open the document in Word and select A4 paper size, 2) Update the second page, 3) Reindex the last page, and 4) Save under a new name for convenience. The document also introduces automated testing and the TestComplete tool for creating tests.
The document describes creating components and component processes in UrbanCode Deploy. It includes the following steps:
1. Create three components for the JPetStore application - one each for the app, database, and web files. Import versions of each from the file system.
2. Create a deployment process for the web component that includes steps to clean the working directory and download the latest version of the web component artifacts.
3. Similar processes will be created for the other components and then an application process will call the component processes to deploy the full application.
Creating Workflows Windows Share Point ServicesLiquidHub
This document provides instructions for creating workflows in Windows SharePoint Services using Office SharePoint Designer 2007 and Visual Studio. It describes building a workflow to automate a building permit application process. The workflow assigns a review task when an application is submitted and sends an approval email with the permit amount. The exercises guide the user through setting conditions and actions in SharePoint Designer and testing the workflow by submitting an application and reviewing the assigned task.
The document describes creating components and component processes in UrbanCode Deploy. It includes the following steps:
1. Create three components representing the JPetStore application, database, and web files stored on the UrbanCode Deploy server.
2. Create component processes to deploy each component. This includes adding steps to clean the working directory, download the component artifacts, and place the artifacts in the correct folder.
3. Delete the newest versions of the database and web components so they can be updated later.
The components and processes are now ready to be used to deploy the JPetStore application. An application process will call the component processes to deploy each piece.
This document provides instructions for developing SQL Server Reporting Services (SSRS) reports for Microsoft Dynamics AX. It covers SSRS installation and configuration, editing existing reports, developing new query-based and report data provider (RDP)-based reports using Visual Studio, previewing and deploying reports, and using controller classes to modify report behavior. Key steps include creating AX queries and temporary tables, developing report datasets and designs in Visual Studio, and deploying reports for viewing in the browser or launching from AX. Controller classes can modify report queries, parameters, and contracts before report execution.
Cis407 a ilab 3 web application development devry universitylhkslkdh89009
This document provides instructions for completing iLab 3 of the CIS407A course at Devry University. The lab involves adding user activity monitoring functionality to an existing payroll system website. Students are instructed to create a database table to store user activity data, add code to save activity data to the table, and display the activity data on a new web form. Validation logic is also added to an existing personnel form to validate field values. Upon completing the tasks and verifying the functionality, students are to submit all project files.
The document discusses workflow development in Dynamics AX 2012. Key points include:
1. The workflow architecture in AX 2012 allows hosting WCF services directly on the AOS and no longer requires a separate workflow component installation. Workflow templates can now be configured at the company or cross-company level.
2. Workflows can now be developed using wizards that generate the necessary classes and menu items. The document provides steps to develop a customer approval workflow using these wizards.
3. A generic class is provided to activate workflows on submit and resubmit events for all workflows in AX. The document includes steps to test the new customer approval workflow.
This document provides an overview of using the PVS-Studio static code analysis tool for Visual C++ projects in Visual Studio. It describes how to install and configure PVS-Studio, analyze a project, work with diagnostic messages, use the incremental analysis feature to check for errors as code is written, and suppress false positives. The tool integrates directly into Visual Studio and can detect many types of errors like typos, logic errors, and security issues.
This document provides information about creating and running object-oriented programs in C# using Visual Studio. It discusses the .NET framework and different types of applications that can be created. It then provides step-by-step instructions on creating a simple Windows forms application with a button and message box, and a basic web application with a "Hello World" header. It also discusses opening and editing pages, building and running projects, and customizing project properties.
This chapter discusses SQL Server Reporting Services (SSRS) which is the primary framework for developing reports in Microsoft Dynamics AX 2012. It describes installing SSRS and the Reporting Services Extensions as part of the Microsoft Dynamics AX 2012 installation. The chapter also explains the tools used for report development including Visual Studio and SQL Server Reporting Services, and the process for developing reports in Visual Studio by defining data sources and report designs.
The document provides an overview of the Report Conversion Tool, which converts SAP BusinessObjects Desktop Intelligence reports to Web Intelligence format. Key points include:
- The Report Conversion Tool converts Desktop Intelligence reports to the Web Intelligence format supported in SAP BusinessObjects BI platform 4.0 Feature Pack 3.
- Reports are retrieved from the source CMS and can be published back to the same or different folders in the destination CMS after conversion.
- Reports are assigned a status of Fully Converted, Partially Converted, or Not Converted depending on which Desktop Intelligence features can be converted.
- New features like Query on Query are fully supported in the conversion to Web Intelligence.
The document discusses interfacing with end users in ASP.NET. It provides two programming models - Web Forms and WCF Services. Web Forms enables creating user interfaces and application logic, while WCF Services enables remote server-side functionality access. It also discusses creating a basic web form in ASP.NET that displays the current date and time when a button is clicked to demonstrate the Web Forms model. Common controls like labels, textboxes, buttons are also summarized with their properties and events.
How to embed reporting into your asp.net core web applications Concetto Labs
If you want to hire an ASP.NET Core web Application developer or looking for an ASP.NET Development Company connect with us to discuss your requirements.
How to Create Oracle Fusion BI Publisher Report Using RTF TemplateFeras Ahmad
This document provides steps to create an Oracle Fusion BI Publisher report using a Rich Text Format (RTF) template. It explains that RTF templates can be created using the BI Publisher Template Builder Microsoft Word add-in. The steps include: 1) opening an existing BI report and exporting the XML data file, 2) creating an RTF template in Word using the XML file, and 3) uploading the RTF template to replace an existing report layout. The template allows adding data fields, tables, and other formatting features to design the report layout.
Report Exchange Designer allows users to modify and run predefined fixed asset reports in Oracle Applications. It provides an easy way to create new reports without using Oracle Report Builder. Key steps include:
1. Creating a view with relevant data including a REQUEST_ID column.
2. Using the Report Exchange Designer to create a new report, select columns, set grouping and summaries.
3. Creating a concurrent program with the FARXPBSH executable and parameters including the report ID, attribute set, and output format.
The document discusses how to create reports using the Data Report Designer in Visual Basic 6. Key points include:
1. The Data Report Designer allows adding sections like report header, page header, detail, etc. and controls to design reports.
2. Reports can be bound to a data source using the Data Environment Designer to connect to a database and retrieve data.
3. Fields can be dragged from the Data Environment onto the Data Report Designer and arranged in sections to display data.
This document provides instructions for customizing reports generated from FanTestic blower door software. It describes how to open and edit an existing report template to add company logos and headers or footers with identifying information. It notes that template fields containing data from FanTestic tests should not be removed. The document also briefly outlines how to save, print, generate, and export FanTestic test results.
The document discusses best practices for developing SAPUI5 web applications using templates in SAP Web IDE. It describes how to create an app from the SAPUI5 Application template, which includes features like asynchronous loading, component structure, and separation of view, controller and model logic. The template project is already set up according to recommendations like defining the UI5 version and app descriptor, and uses best practices such as the MVC pattern and loading dependencies asynchronously. Customizing the template for a movie app is demonstrated by changing generated strings.
( 5 ) Office 2007 Create A Business Data CatologLiquidHub
This document provides instructions for creating a Business Data Catalog in SharePoint that connects to an AdventureWorks database. It involves building metadata that defines entities, methods, filters, and actions. The metadata is used to generate an XML file that can then be imported into SharePoint to register the database. The exercises walk through defining each component in the metadata file and importing it to create a Business Data Catalog application in SharePoint, making the AdventureWorks data available for use.
RDLC reports allow ASP.NET developers to easily represent data to end users. They can be created in Visual Studio using the Report Designer and ReportViewer controls, and allow exporting reports to Excel, PDF and Word formats. The .rdlc file extension contains the report definitions created by Visual Studio. In contrast, .rdl files are used by SQL Server Reporting Services and require a Reporting Services instance. The demo shows how to add a connection string, ReportViewer control, design a sample student report in .rdlc format and display it using the ReportViewer.
Installation of PC-Lint and its using in Visual Studio 2005PVS-Studio
The article is devoted to the first acquaintance with the PC-Lint 8.0 static analyzer of C++ code. The process of the tool installation and its initial setting is described.
The document provides an overview and demonstration of the SAS UTR application, which allows users to generate Uniform Technical Reports (UTRs) from clinical study data. It discusses the application components, how to import data using the UTR Helper Excel macro, running the SAS conversion macro, generating reports, and common troubleshooting issues.
This document summarizes Crystal Reports, a reporting tool integrated into Visual Studio. It discusses how Crystal Reports can be used to create interactive, professional reports connected to various data sources. Reports can be generated, viewed, and exported in different formats. The document outlines the Crystal Reports object models and controls that can be used for report generation and display in applications. It also provides steps for report generation using a pull method that directly accesses a database.
The document provides an agenda for a presentation on SharePoint 2010 development. It covers topics like SharePoint architecture, client installation, debugging the server, web parts, application pages, custom fields, controls, and taking questions. There are sections that dive deeper into specific topics, like explaining the SharePoint 2010 architecture, the steps for client installation, different approaches for debugging the server, how to create and work with web parts, and an overview of using custom fields and controls in SharePoint applications.
The document provides an agenda for a presentation on SharePoint 2010 development. It covers topics like SharePoint architecture, client installation, debugging the server, web parts, application pages, custom fields, controls, and taking questions. There are sections that dive deeper into specific topics, like explaining the SharePoint 2010 architecture, the steps for client installation, different approaches for debugging the server, how to create and work with web parts, and an overview of using custom fields and controls in SharePoint development.
This set of slides is part of the course Data Visualization GE, available on FIWARE platform, whose SpagoBI is the reference implementation. This course aims at offering assistance to create a simple Report with Birt. We drive users from installation to the development of the document through SpagoBI Studio and finally show how the report can be transfered on SpagoBI server.
- VB.NET is an object-oriented programming language that is implemented on the .NET framework. It evolved from Visual Basic 6 but is not backwards compatible.
- The .NET framework is a software development platform created by Microsoft to build applications that run on the Windows platform. It was first released in 2002.
- The .NET framework can be used to create both web-based and desktop applications and supports languages like C# and VB.NET. Developers can choose the language to develop applications.
- VB.NET is an object-oriented programming language that is implemented on the .NET framework. It evolved from Visual Basic 6 but is not backwards compatible.
- The .NET framework is a software development platform created by Microsoft to build applications for the Windows platform. It was first released in 2002.
- The .NET framework can be used to create both web-based and desktop applications and supports languages like C# and VB.NET. Developers can select the language to develop applications.
- VB.NET is an object-oriented programming language that is implemented on the .NET framework. It evolved from Visual Basic 6 but is not backwards compatible.
- The .NET framework is a software development platform created by Microsoft to build applications that run on the Windows platform. It was first released in 2002.
- The .NET framework can be used to create both web-based and desktop applications and supports languages like C# and VB.NET. It includes class libraries for common functions.
- VB.NET is an object-oriented programming language that is implemented on the .NET framework. It evolved from Visual Basic 6 but is not backwards compatible.
- The .NET framework is a software development platform created by Microsoft to build applications that run on the Windows platform. It was first released in 2002.
- The .NET framework can be used to create both web-based and desktop applications and supports languages like C# and VB.NET. It includes class libraries for common functions.
What is an RPA CoE? Session 1 – CoE VisionDianaGray10
In the first session, we will review the organization's vision and how this has an impact on the COE Structure.
Topics covered:
• The role of a steering committee
• How do the organization’s priorities determine CoE Structure?
Speaker:
Chris Bolin, Senior Intelligent Automation Architect Anika Systems
Introduction of Cybersecurity with OSS at Code Europe 2024Hiroshi SHIBATA
I develop the Ruby programming language, RubyGems, and Bundler, which are package managers for Ruby. Today, I will introduce how to enhance the security of your application using open-source software (OSS) examples from Ruby and RubyGems.
The first topic is CVE (Common Vulnerabilities and Exposures). I have published CVEs many times. But what exactly is a CVE? I'll provide a basic understanding of CVEs and explain how to detect and handle vulnerabilities in OSS.
Next, let's discuss package managers. Package managers play a critical role in the OSS ecosystem. I'll explain how to manage library dependencies in your application.
I'll share insights into how the Ruby and RubyGems core team works to keep our ecosystem safe. By the end of this talk, you'll have a better understanding of how to safeguard your code.
Freshworks Rethinks NoSQL for Rapid Scaling & Cost-EfficiencyScyllaDB
Freshworks creates AI-boosted business software that helps employees work more efficiently and effectively. Managing data across multiple RDBMS and NoSQL databases was already a challenge at their current scale. To prepare for 10X growth, they knew it was time to rethink their database strategy. Learn how they architected a solution that would simplify scaling while keeping costs under control.
Discover top-tier mobile app development services, offering innovative solutions for iOS and Android. Enhance your business with custom, user-friendly mobile applications.
Conversational agents, or chatbots, are increasingly used to access all sorts of services using natural language. While open-domain chatbots - like ChatGPT - can converse on any topic, task-oriented chatbots - the focus of this paper - are designed for specific tasks, like booking a flight, obtaining customer support, or setting an appointment. Like any other software, task-oriented chatbots need to be properly tested, usually by defining and executing test scenarios (i.e., sequences of user-chatbot interactions). However, there is currently a lack of methods to quantify the completeness and strength of such test scenarios, which can lead to low-quality tests, and hence to buggy chatbots.
To fill this gap, we propose adapting mutation testing (MuT) for task-oriented chatbots. To this end, we introduce a set of mutation operators that emulate faults in chatbot designs, an architecture that enables MuT on chatbots built using heterogeneous technologies, and a practical realisation as an Eclipse plugin. Moreover, we evaluate the applicability, effectiveness and efficiency of our approach on open-source chatbots, with promising results.
Dandelion Hashtable: beyond billion requests per second on a commodity serverAntonios Katsarakis
This slide deck presents DLHT, a concurrent in-memory hashtable. Despite efforts to optimize hashtables, that go as far as sacrificing core functionality, state-of-the-art designs still incur multiple memory accesses per request and block request processing in three cases. First, most hashtables block while waiting for data to be retrieved from memory. Second, open-addressing designs, which represent the current state-of-the-art, either cannot free index slots on deletes or must block all requests to do so. Third, index resizes block every request until all objects are copied to the new index. Defying folklore wisdom, DLHT forgoes open-addressing and adopts a fully-featured and memory-aware closed-addressing design based on bounded cache-line-chaining. This design offers lock-free index operations and deletes that free slots instantly, (2) completes most requests with a single memory access, (3) utilizes software prefetching to hide memory latencies, and (4) employs a novel non-blocking and parallel resizing. In a commodity server and a memory-resident workload, DLHT surpasses 1.6B requests per second and provides 3.5x (12x) the throughput of the state-of-the-art closed-addressing (open-addressing) resizable hashtable on Gets (Deletes).
inQuba Webinar Mastering Customer Journey Management with Dr Graham HillLizaNolte
HERE IS YOUR WEBINAR CONTENT! 'Mastering Customer Journey Management with Dr. Graham Hill'. We hope you find the webinar recording both insightful and enjoyable.
In this webinar, we explored essential aspects of Customer Journey Management and personalization. Here’s a summary of the key insights and topics discussed:
Key Takeaways:
Understanding the Customer Journey: Dr. Hill emphasized the importance of mapping and understanding the complete customer journey to identify touchpoints and opportunities for improvement.
Personalization Strategies: We discussed how to leverage data and insights to create personalized experiences that resonate with customers.
Technology Integration: Insights were shared on how inQuba’s advanced technology can streamline customer interactions and drive operational efficiency.
Connector Corner: Seamlessly power UiPath Apps, GenAI with prebuilt connectorsDianaGray10
Join us to learn how UiPath Apps can directly and easily interact with prebuilt connectors via Integration Service--including Salesforce, ServiceNow, Open GenAI, and more.
The best part is you can achieve this without building a custom workflow! Say goodbye to the hassle of using separate automations to call APIs. By seamlessly integrating within App Studio, you can now easily streamline your workflow, while gaining direct access to our Connector Catalog of popular applications.
We’ll discuss and demo the benefits of UiPath Apps and connectors including:
Creating a compelling user experience for any software, without the limitations of APIs.
Accelerating the app creation process, saving time and effort
Enjoying high-performance CRUD (create, read, update, delete) operations, for
seamless data management.
Speakers:
Russell Alfeche, Technology Leader, RPA at qBotic and UiPath MVP
Charlie Greenberg, host
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...Fwdays
Direct losses from downtime in 1 minute = $5-$10 thousand dollars. Reputation is priceless.
As part of the talk, we will consider the architectural strategies necessary for the development of highly loaded fintech solutions. We will focus on using queues and streaming to efficiently work and manage large amounts of data in real-time and to minimize latency.
We will focus special attention on the architectural patterns used in the design of the fintech system, microservices and event-driven architecture, which ensure scalability, fault tolerance, and consistency of the entire system.
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...Alex Pruden
Folding is a recent technique for building efficient recursive SNARKs. Several elegant folding protocols have been proposed, such as Nova, Supernova, Hypernova, Protostar, and others. However, all of them rely on an additively homomorphic commitment scheme based on discrete log, and are therefore not post-quantum secure. In this work we present LatticeFold, the first lattice-based folding protocol based on the Module SIS problem. This folding protocol naturally leads to an efficient recursive lattice-based SNARK and an efficient PCD scheme. LatticeFold supports folding low-degree relations, such as R1CS, as well as high-degree relations, such as CCS. The key challenge is to construct a secure folding protocol that works with the Ajtai commitment scheme. The difficulty, is ensuring that extracted witnesses are low norm through many rounds of folding. We present a novel technique using the sumcheck protocol to ensure that extracted witnesses are always low norm no matter how many rounds of folding are used. Our evaluation of the final proof system suggests that it is as performant as Hypernova, while providing post-quantum security.
Paper Link: https://eprint.iacr.org/2024/257
Monitoring and Managing Anomaly Detection on OpenShift.pdfTosin Akinosho
Monitoring and Managing Anomaly Detection on OpenShift
Overview
Dive into the world of anomaly detection on edge devices with our comprehensive hands-on tutorial. This SlideShare presentation will guide you through the entire process, from data collection and model training to edge deployment and real-time monitoring. Perfect for those looking to implement robust anomaly detection systems on resource-constrained IoT/edge devices.
Key Topics Covered
1. Introduction to Anomaly Detection
- Understand the fundamentals of anomaly detection and its importance in identifying unusual behavior or failures in systems.
2. Understanding Edge (IoT)
- Learn about edge computing and IoT, and how they enable real-time data processing and decision-making at the source.
3. What is ArgoCD?
- Discover ArgoCD, a declarative, GitOps continuous delivery tool for Kubernetes, and its role in deploying applications on edge devices.
4. Deployment Using ArgoCD for Edge Devices
- Step-by-step guide on deploying anomaly detection models on edge devices using ArgoCD.
5. Introduction to Apache Kafka and S3
- Explore Apache Kafka for real-time data streaming and Amazon S3 for scalable storage solutions.
6. Viewing Kafka Messages in the Data Lake
- Learn how to view and analyze Kafka messages stored in a data lake for better insights.
7. What is Prometheus?
- Get to know Prometheus, an open-source monitoring and alerting toolkit, and its application in monitoring edge devices.
8. Monitoring Application Metrics with Prometheus
- Detailed instructions on setting up Prometheus to monitor the performance and health of your anomaly detection system.
9. What is Camel K?
- Introduction to Camel K, a lightweight integration framework built on Apache Camel, designed for Kubernetes.
10. Configuring Camel K Integrations for Data Pipelines
- Learn how to configure Camel K for seamless data pipeline integrations in your anomaly detection workflow.
11. What is a Jupyter Notebook?
- Overview of Jupyter Notebooks, an open-source web application for creating and sharing documents with live code, equations, visualizations, and narrative text.
12. Jupyter Notebooks with Code Examples
- Hands-on examples and code snippets in Jupyter Notebooks to help you implement and test anomaly detection models.
LF Energy Webinar: Carbon Data Specifications: Mechanisms to Improve Data Acc...DanBrown980551
This LF Energy webinar took place June 20, 2024. It featured:
-Alex Thornton, LF Energy
-Hallie Cramer, Google
-Daniel Roesler, UtilityAPI
-Henry Richardson, WattTime
In response to the urgency and scale required to effectively address climate change, open source solutions offer significant potential for driving innovation and progress. Currently, there is a growing demand for standardization and interoperability in energy data and modeling. Open source standards and specifications within the energy sector can also alleviate challenges associated with data fragmentation, transparency, and accessibility. At the same time, it is crucial to consider privacy and security concerns throughout the development of open source platforms.
This webinar will delve into the motivations behind establishing LF Energy’s Carbon Data Specification Consortium. It will provide an overview of the draft specifications and the ongoing progress made by the respective working groups.
Three primary specifications will be discussed:
-Discovery and client registration, emphasizing transparent processes and secure and private access
-Customer data, centering around customer tariffs, bills, energy usage, and full consumption disclosure
-Power systems data, focusing on grid data, inclusive of transmission and distribution networks, generation, intergrid power flows, and market settlement data
5th LF Energy Power Grid Model Meet-up SlidesDanBrown980551
5th Power Grid Model Meet-up
It is with great pleasure that we extend to you an invitation to the 5th Power Grid Model Meet-up, scheduled for 6th June 2024. This event will adopt a hybrid format, allowing participants to join us either through an online Mircosoft Teams session or in person at TU/e located at Den Dolech 2, Eindhoven, Netherlands. The meet-up will be hosted by Eindhoven University of Technology (TU/e), a research university specializing in engineering science & technology.
Power Grid Model
The global energy transition is placing new and unprecedented demands on Distribution System Operators (DSOs). Alongside upgrades to grid capacity, processes such as digitization, capacity optimization, and congestion management are becoming vital for delivering reliable services.
Power Grid Model is an open source project from Linux Foundation Energy and provides a calculation engine that is increasingly essential for DSOs. It offers a standards-based foundation enabling real-time power systems analysis, simulations of electrical power grids, and sophisticated what-if analysis. In addition, it enables in-depth studies and analysis of the electrical power grid’s behavior and performance. This comprehensive model incorporates essential factors such as power generation capacity, electrical losses, voltage levels, power flows, and system stability.
Power Grid Model is currently being applied in a wide variety of use cases, including grid planning, expansion, reliability, and congestion studies. It can also help in analyzing the impact of renewable energy integration, assessing the effects of disturbances or faults, and developing strategies for grid control and optimization.
What to expect
For the upcoming meetup we are organizing, we have an exciting lineup of activities planned:
-Insightful presentations covering two practical applications of the Power Grid Model.
-An update on the latest advancements in Power Grid -Model technology during the first and second quarters of 2024.
-An interactive brainstorming session to discuss and propose new feature requests.
-An opportunity to connect with fellow Power Grid Model enthusiasts and users.
Skybuffer SAM4U tool for SAP license adoptionTatiana Kojar
Manage and optimize your license adoption and consumption with SAM4U, an SAP free customer software asset management tool.
SAM4U, an SAP complimentary software asset management tool for customers, delivers a detailed and well-structured overview of license inventory and usage with a user-friendly interface. We offer a hosted, cost-effective, and performance-optimized SAM4U setup in the Skybuffer Cloud environment. You retain ownership of the system and data, while we manage the ABAP 7.58 infrastructure, ensuring fixed Total Cost of Ownership (TCO) and exceptional services through the SAP Fiori interface.
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfChart Kalyan
A Mix Chart displays historical data of numbers in a graphical or tabular form. The Kalyan Rajdhani Mix Chart specifically shows the results of a sequence of numbers over different periods.
Essentials of Automations: Exploring Attributes & Automation ParametersSafe Software
Building automations in FME Flow can save time, money, and help businesses scale by eliminating data silos and providing data to stakeholders in real-time. One essential component to orchestrating complex automations is the use of attributes & automation parameters (both formerly known as “keys”). In fact, it’s unlikely you’ll ever build an Automation without using these components, but what exactly are they?
Attributes & automation parameters enable the automation author to pass data values from one automation component to the next. During this webinar, our FME Flow Specialists will cover leveraging the three types of these output attributes & parameters in FME Flow: Event, Custom, and Automation. As a bonus, they’ll also be making use of the Split-Merge Block functionality.
You’ll leave this webinar with a better understanding of how to maximize the potential of automations by making use of attributes & automation parameters, with the ultimate goal of setting your enterprise integration workflows up on autopilot.
Fueling AI with Great Data with Airbyte WebinarZilliz
This talk will focus on how to collect data from a variety of sources, leveraging this data for RAG and other GenAI use cases, and finally charting your course to productionalization.
3. Table of contents
Chapter I General information 6
Installing into VS Toolbox 6
Troubleshooting 6
Deployment 7
Compiling the source code 7
Credits 8
Chapter II Working with Windows.Forms 10
Using the Report component in Visual Studio 10
Working with report in a code 11
Storing and loading a report 12
Registering data 13
Passing a value to a report parameter 14
Running a report 14
Designing a report 15
Exporting a report 15
Configuring the FastReport.Net environment 16
Replacing the "Open" and "Save" dialogs 18
Replacing the standard progress window 19
Passing own connection string 20
Passing custom SQL 21
Reference to a report object 21
Creating a report by using code 22
Using own preview window 24
Filtering tables in the Data Wizard 25
Chapter III Working with ASP.NET 28
Using the WebReport component 28
Setting up web handler 29
Storing and loading a report 29
Registering data 31
Passing a value to a report parameter 31
Working in the "Medium Trust" mode 31
Working in Web Farm and Web Garden architectures 32
Working with ASP.NEÒ MVC 32
Example of export in MVC 33
FastReport .Net and jQuery 34
Chapter IV Working with WCF 36
WCF service library FastReport.Service.dll 36
Simple example of WCF service 39
Creating Web Service using FastReport.Service.dll 42
Creating the WCF service hosted in windows service 48
Table of contents 3
6. General information
Installing into VS Toolbox
The FastReport.Net installation program automatically adds FastReport components into the
Visual Studio Toolbox. If you have disabled this feature when installing, you may add the
components manually. To do this:
delete the "FastReport.Net" tab from the Toolbox, if it is there;
create a new tab (to do this, right-click the Toolbox and select "Add Tab" item), or select an
existing tab you would like to add FastReport components to;
right-click on a tab and select "Choose Items...":
in the dialog, press the "Browse..." button and choose FastReport.dll, FastReport.Web.dll files
(they are located in the "C:Program FilesFastReportsFastReport.Net" folder);
close the dialog with OK button.
After this, you will see FastReport.Net components in a chosen tab:
Report;
PreviewControl;
DesignerControl;
EnvironmentSettings;
WebReport (this component will be visible in ASP.NET project only).
Troubleshooting
If you face a problem when working with report designer (for example, some toolbars or tool
windows are damaged), you should delete the configuration file. This file is created when you
start FastReport.Net. It is located in the following folder:
Windows XP:
C:Doc ument s and Set t ingsuser_nameLoc al Set t ingsApplic at ion
DataFastReport FastReport .c onfig
6 General information
7. Windows Vista:
C:Usersuser_nameAppDataLoc alFastReport FastReport .c onfig
The following information is stored in the config:
sizes and locations of dialog windows;
toolbar settings;
recent used data connections;
email settings (if you use the "Send Email" feature in the preview).
Deployment
You may redistribute the following files along with your application:
FastReport.dll - the main FastReport.Net library;
FastReport.Web.dll - the library that contains ASP.Net WebReport component;
FastReport.Bars.dll - the toolbars and docking windows library;
FastReport.Editor.dll - the code editor with syntax highlight. This library is not needed if you
don't provide an end-user designer;
FastReport.xml - comments for classes, properties and methods used in FastReport. This file
is used by the script editor, and also by the hint panels in the "Data" and "Properties"
windows. It's not obligatory to distribute this file.
You may distribute the User's Manual which is contained in the FRNetUserManual.chm file. This
file can be shown from the report designer, if you select the "Help|Contents..." menu item.
If your reports are stored in files, you have to deploy them as well.
Compiling the source code
Source code is shipped with FastReport.Net Professional edition. It includes source code of
FastReport.dll, FastReport.Web.dll libraries. You may include it in your application's solution file.
Let us demonstrate how to do this:
open your project in the Visual Studio;
open the Solution Explorer and right-click on the "Solution" item;
choose the "Add/Existing Project..." item;
add the "FastReport.csproj" file (it is located in the "C:Program
FilesFastReportsFastReport.NetSourceFastReport" folder);
add the "FastReport.Web.csproj" file (it is located in the "C:Program
FilesFastReportsFastReport.NetSourceFastReport.Web" folder).
Turn off assembly signing for FastReport and FastReport.Web projects. To do this:
right-click the "FastReport" project in the Solution Explorer;
choose the "Properties" item;
switch to the "Signing" tab and uncheck the "Sign the assembly" checkbox;
do the same steps for FastReport.Web project.
Update the references to other FastReport.Net assemblies. To do this:
expand the "FastReportReferences" item in the Solution Explorer;
remove the "FastReport.Bars", "FastReport.Editor" references;
General information 7
8. right-click the "References" item and choose the "Add Reference..." item;
add references to the "FastReport.Bars.dll" and "FastReport.Editor.dll" files. These files are
located in the "C:Program FilesFastReportsFastReport.Net" folder.
Credits
Toolbars and docking - DevComponents (http://www.devcomponents.com)
Code editor with syntax highlight - Quantum Whale (http://www.qwhale.net)
Silk icons set (http://www.famfamfam.com/lab/icons/silk)
8 General information
10. Working with Windows.Forms
Using the Report component in Visual Studio
Let us consider the typical use of the Report component in Visual Studio. We will use the data
from a typed dataset.
create a new Windows Forms application;
add a dataset into it ("Data|Add New Data Source..." menu item);
switch to the Form designer;
add the "DataSet" component on a form and connect it to the typed dataset that you have
created.
To create a report, perform the following steps:
put the "Report" component on a form:
right-click it (or click on a smart tag button) and select the "Design Report..." item:
choose the data source to use in a report:
10 Working with Windows.Forms
11. create your report. Read more about this in the User's Manual;
close the report designer;
add a "Button" control on your form;
double-click it and write the following code in the button_Click event handler:
report1.Show();
save the project and run it. When you click on a button you will see the prepared report.
Working with report in a code
To work with Report component in a code, you need to do the following:
create a report instance;
load a report file into it;
register the application-defined data in a report;
pass the values into the report parameters, if needed;
run the report.
The following example demonstrates how to do this:
using (Report report = new Report())
{
report.Load("report1.frx");
report.RegisterData(dataSet1, "NorthWind");
report.Show();
}
We will consider these steps in details in the following sections of this manual.
Working with Windows.Forms 11
12. Storing and loading a report
You may store a report in the following ways:
Method Description
in the
application's
resources
The typical scenario of using the Report, which we looked at before, uses
this method. The StoreInResources property of the Report object is
responsible for this. This property is set to true by default. This method
has the following pros and cons:
+ a report is embedded into your application, you don't need to deploy
extra files;
- if you need to change a report, you have to recompile your application.
Loading a report is performed automatically. To do this, FastReport.Net
adds a code into the InitializeComponent method of your form.
in the .FRX file This method is useful if you want to give your users the ability to change a
report. In this case, set the report's StoreInResources property to false.
To load the report from a file, use the Load method of the Report object:
report1.Load("filename.frx");
in the database You may store a report in the database, either as a string or in a blob-stream.
To load the report from a string, use the LoadFromString method of the
Report object. To load the report from a stream, use the overloaded
version of the Load method:
report1.Load(stream);
To support the load/save operations in the report designer, you need to
replace the "Open File" and "Save File" dialogs in the designer. Read here
how to do this.
as a C#/VB.
NET class
To work with a report as a class, design your report and save in to the .
cs/.vb file. To do this, select "file type" in the "Save" dialog. The file type
maybe either .cs or .vb - it depends on the script language in the report (it
may be changed in the "Report|Options..." menu). Include that file into
your project. This method has the following pros and cons:
+ you can work with a report as a class;
+ you may debug a report;
+ this is the only way to use a report in ASP.NET project running on
medium trust environment;
- you cannot edit such a report. To do this, you need the original .FRX file;
- if you need to change a report, you have to recompile your application.
To work with a report, create an instance of the report's class:
SimpleListReport report = new SimpleListReport();
12 Working with Windows.Forms
13. report.Show();
Registering data
If your report uses data from an application (for example, the typed dataset or a business-object),
you have to register such data in a report. This can be done using the RegisterData
method of the Report object.
When you use the Report as described in the "Using the Report component in Visual Studio"
section, you don't need to register the data. FastReport.Net does it automatically (it adds the
RegisterData call in the InitializeComponent method of your form).
The RegisterData method must be called after you have loaded the report:
report1 = new Report();
report1.Load("report.frx");
report1.RegisterData(dataSet1, "NorthWind");
The RegisterData method is overloaded and allows to register the following data:
Method Description
void RegisterData(
DataSet data)
Registers the dataset. This method registers all tables, views
and relations as well.
Attention: if you register more than one dataset, use the
RegisterData(DataSet data, string name) method instead.
void RegisterData(
DataSet data,
string name)
Registers the dataset. Specify any name in the name parameter
(it must be persistent and unique if you register more than one
dataset).
void RegisterData(
DataTable data,
string name)
Registers the data table.
void RegisterData(
DataView data,
string name)
Registers the data view.
void RegisterDataAsp(
IDataSource data,
string name)
Registers the ASP.NET data source such as AccessDataSource.
void RegisterData(
DataRelation data,
string name)
Registers the relation.
void RegisterData(
Registers the business object. Specify what items (properties,
fields) should be used, in the flags parameter. Specify the
maximum nesting level in the maxNest ingLevel parameter
(typically you need no more than 3 levels). Several nested
objects may slow down the report.
IEnumerable data,
string name,
BOConverterFlags flags,
int maxNestingLevel)
Working with Windows.Forms 13
14. Passing a value to a report parameter
The report may have parameters. Read more about this in the User's Manual. To pass a value
to the parameter, use the SetParameterValue method of the Report object:
report1.Load("report.frx");
report1.SetParameterValue("MyParam", 10);
report1.Show();
This method is declared as follows:
public void SetParameterValue(string complexName, object value)
Specify the parameter's name in the c omplexName parameter. To access a nested parameter,
use its full name, for example:
"ParentParameter.ChildParameter"
Running a report
To run a report, use one of the following methods of the Report object:
Method Description
void Show() Runs a report and shows it in the preview window. This method is equal
to:
if (Prepare())
ShowPrepared();
bool Prepare() Runs a report. If the report was prepared successfully, returns true.
After this method, you need to call one of the following methods:
ShowPrepared, PrintPrepared, SavePrepared, Export:
if (Prepare())
ShowPrepared();
bool Prepare(
bool append)
Runs a report. If the append parameter is set to true, the prepared
report will be added to the existing one. So you can build several
reports and display them in the preview as one report:
report1.Load("report1.frx");
report1.Prepare();
report1.Load("report2.frx");
report1.Prepare(true);
report.ShowPrepared();
void ShowPrepared()Shows a prepared report in the preview window. The report must be
either prepared using the Prepare method, or loaded from the .FPX file
using the LoadPrepared method:
if (Prepare())
14 Working with Windows.Forms
15. ShowPrepared();
void ShowPrepared(
bool modal)
Shows a prepared report in the preview window. The modal parameter
determines whether the preview should be shown modally.
void ShowPrepared(
bool modal,
Form owner)
The same as the previous method. The owner parameter determines a
window that owns the preview window.
void ShowPrepared(
Form mdiParent)
The same as the previous method. The mdiParent parameter
determines the main MDI window.
Designing a report
You can use the report designer in your application. This is possible for all FastReport.Net
editions except the Basic. To do this, use the Design method of Report object:
report1 = new Report();
report1.Load("report1.frx");
report1.Design();
The Design method is overloaded:
Method Description
bool Design() Shows the designer.
bool Design(
bool modal)
Shows the designer. The modal parameter determines whether it is
necessary to show the designer modally.
bool Design(
Shows the designer. The mdiParent parameter defines the main MDI
window.
Form mdiParent)
Exporting a report
The prepared report can be exported to one of the supported formats. At this moment, the
following formats can be used:
PDF
HTML
RTF
Excel XML (Excel 2003+)
Excel 2007
CSV
TXT
OpenOffice Calc
Pictures (Bmp, Png, Jpeg, Gif, Tiff, Metafile)
The export is performed by the export filter. To do this:
Working with Windows.Forms 15
16. prepare a report using the Prepare method;
create an instance of export filter and set up its properties;
call the Export method of the Report object.
The following example exports a prepared report in the HTML format:
// prepare a report
report1.Prepare();
// create an instance of HTML export filter
FastReport.Export.Html.HTMLExport export = new FastReport.Export.Html.HTMLExport();
// show the export options dialog and do the export
if (export.ShowDialog())
report1.Export(export, "result.html");
In this example, export settings are made using the dialog window.
Configuring the FastReport.Net environment
Using the EnvironmentSettings component which is available in the Toolbox, you can control
some FastReport.Net environment settings. To do this, put the component on your form and
set up its properties using the Properties window.
The EnvironmentSettings.ReportSettings property contains some report-related settings:
Property Description
Language DefaultLanguaTghee default script language for new reports.
bool ShowProgress Determines whether it is necessary to show the progress window.
bool ShowPerformance Determines whether to show the information about the report
performance (report generation time, memory consumed) in the
lower right corner of the preview window.
The EnvironmentSettings.DesignerSettings property contains some designer-related settings:
Property Description
Icon Icon The icon for the designer window.
Font DefaultFont The default font used in a report.
The EnvironmentSettings.PreviewSettings property contains some preview-related settings:
Property Description
PreviewButtons ButtonsSet of buttons that will be visible in the preview's toolbar.
int PagesInCache The number of prepared pages that can be stored in the memory
cache during preview.
bool ShowInTaskbar Determines whether the preview window is displayed in the
Windows taskbar.
16 Working with Windows.Forms
17. bool TopMost Determines whether the preview window should be displayed as a
topmost form.
Icon Icon The icon for the preview window.
string Text The text for the preview window. If no text is set, the default text
"Preview" will be used.
The EnvironmentSettings.EmailSettings property contains email account settings. These
settings are used in the "Send Email" feature in the preview window:
Property Description
string Address Sender address (e.g. your email address).
string Name Sender name (e.g. your name).
string MessageTemplateThe message template that will be used to create a new message.
For example, "Hello, Best regards, ...".
string Host SMTP host address.
int Port SMTP port (25 by default).
string UserName,
string Password
User name and password. Leave these properties empty if your
server does not require authentication.
bool AllowUI Allows to change these settings in the "Send Email" dialog.
Settings will be stored in the FastReport.Net configuration file.
UI style settings are available in the following properties of EnvironmentSettings component:
Property Description
UIStyle UIStyle The style of designer and preview form. 6 styles are available -
VisualStudio2005, Office2003, Office2007Blue, Office2007Silver,
Office2007Black, VistaGlass.
The default style is Office2007Black.
bool UseOffice2007FormThis property affects the designer and preview form. It determines
whether the Office2007-style form should be used if one of the
following styles is selected: Office2007Blue, Office2007Silver,
Office2007Black, VistaGlass.
Default value is true.
Besides these properties, the EnvironmentSettings component has some events. Using such
events, you may do the following:
replace standard "Open file" and "Save file" dialogs in the designer;
replace standard progress window;
pass own connection string to a connection defined in the report.
These tasks will be described in the following sections of this manual.
Working with Windows.Forms 17
18. Replacing the "Open" and "Save" dialogs
If you decided to store a report in the database, you may need to change the designer in such
a way that it can open and save reports from/to a database. That is, you need to replace
standard "Open" and "Save" dialogs with your own dialogs that work with database. To do this,
use the EnvironmentSettings component (see the previous section). This component has the
following events:
Event Description
CustomOpenDialog Occurs when the report designer is about to show the "Open" dialog. In
the event handler, you must display a dialog window to allow user to
choose a report file. If dialog was executed successfully, you must
return e.Cancel = false and set the e.FileName to the selected file
name.
The following example demonstrates how to use this event:
private void CustomOpenDialog_Handler(
object sender, OpenSaveDialogEventArgs e)
{
using (OpenFileDialog dialog = new OpenFileDialog())
{
dialog.Filter = "Report files (*.frx)|*.frx";
// set e.Cancel to false if dialog
// was succesfully executed
e.Cancel = dialog.ShowDialog() != DialogResult.OK;
// set e.FileName to the selected file name
e.FileName = dialog.FileName;
}
}
CustomSaveDialog Occurs when the report designer is about to show the "Save" dialog. In
the event handler, you must display a dialog window to allow user to
choose a report file. If dialog was executed successfully, you must
return e.Cancel = false and set the e.FileName to the selected file
name.
The following example demonstrates how to use this event:
private void CustomSaveDialog_Handler(
object sender, OpenSaveDialogEventArgs e)
{
using (SaveFileDialog dialog = new SaveFileDialog())
{
dialog.Filter = "Report files (*.frx)|*.frx";
// get default file name from e.FileName
dialog.FileName = e.FileName;
// set e.Cancel to false if dialog
// was succesfully executed
e.Cancel = dialog.ShowDialog() != DialogResult.OK;
// set e.FileName to the selected file name
e.FileName = dialog.FileName;
}
18 Working with Windows.Forms
19. }
CustomOpenReport Occurs when the report designer is about to load the report. In the
event handler, you must load the report specified in the e.Report
property from the location specified in the e.FileName property. The
latter property contains the name that was returned by the
CustomOpenDialog event handler. It may be the file name, the
database key value, etc.
The following example demonstrates how to use this event:
private void CustomOpenReport_Handler(
object sender, OpenSaveReportEventArgs e)
{
// load the report from the given e.FileName
e.Report.Load(e.FileName);
}
CustomSaveReport Occurs when the report designer is about to save the report. In the
event handler, you must save the report specified in the e.Report
property to the location specified in the e.FileName property. The
latter property contains the name that was returned by the
CustomSaveDialog event handler. It may be the file name, the
database key value, etc.
The following example demonstrates how to use this event:
private void CustomSaveReport_Handler(
object sender, OpenSaveReportEventArgs e)
{
// save the report to the given e.FileName
e.Report.Save(e.FileName);
}
Replacing the standard progress window
The progress window is shown during the following actions:
running a report
printing
exporting
You may turn off the progress by setting the ReportSettings.ShowProgress property of the
EnvironmentSettings component to false. Besides that, you may replace the standard progress
window with your own. To do this, use the following events of the EnvironmentSettings
component (see the "Configuring the FastReport.Net environment" section):
Event Description
StartProgress Occurs once before the operation. In this event, you have to create your
own progress window and show it.
Progress Occurs each time when current report page is handled. In this event, you
Working with Windows.Forms 19
20. have to show the progress state in your window.
FinishProgress Occurs once after the operation. In this event, you have to destroy the
progress window.
The Progress event takes e parameter of ProgressEventArgs type. It has the following
properties:
Property Description
string Message The message text.
int Progress The index of current report page being handled.
int Total The number of total pages in a report. This parameter may be 0 when
preparing a report, because the number of total pages is unknown.
In most cases, you need to display the text from the e.Message property, in the Progress
event handler. Other parameters may be useful if you want to display a progress bar.
Passing own connection string
If you use data sources that are defined inside a report, you may need to pass an application-defined
connection string to a report. This can be done in three ways.
The first method: you pass a connection string directly to the Connection object in a report.
Do the following:
report1.Load(...);
// do it after loading the report, before running it
// assume we have one connection in the report
report1.Dictionary.Connections[0].ConnectionString = my_connection_string;
report1.Show();
The second method: you pass a connection string using the report parameter. Do the
following:
run the report designer;
in the "Data" window, create a new report parameter (with "MyParameter" name, for
example). See the User's Manual for more details;
in the "Data" window, select the "Connection" object that contains a data source;
switch to the "Properties" window and set the ConnectionStringExpression property to the
following:
[MyParameter]
pass the connection string to the MyParameter parameter:
report1.SetParameterValue("MyParameter", my_connection_string);
The third method: use the DatabaseLogin event of the EnvironmentSettings component (see
the "Configuring the FastReport.Net environment" section). This event occurs each time when
FastReport opens the connection. Here is an example of this event handler:
private void environmentSettings1_DatabaseLogin(
20 Working with Windows.Forms
21. object sender, DatabaseLoginEventArgs e)
{
e.ConnectionString = my_connection_string;
}
Keep in mind that the DatabaseLogin event is global, it works with all reports.
Passing custom SQL
The report may contain data sources that are added using the Data Wizard (via "Data|Add
Data Source..." menu). Sometimes it is needed to pass custom SQL to that data source from
your application. To do this, use the following code:
using FastReport.Data;
report1.Load(...);
// do it after loading the report, before running it
// find the table by its alias
TableDataSource table = report1.GetDataSource("MyTable") as TableDataSource;
table.SelectCommand = "new SQL text";
report1.Show();
Reference to a report object
When you work with a report as a class (see the "Storing a report and loading it" section), you
may refer to the report objects directly. The following example demonstrates how to change
the font of the "Text1" object contained in a report:
SimpleListReport report = new SimpleListReport();
report.Text1.Font = new Font("Arial", 12);
In other cases, you have to use the FindObject method of the Report object, if you need to
get a reference to an object:
TextObject text1 = report1.FindObject("Text1") as TextObject;
text1.Font = new Font("Arial", 12);
To reference to a data source defined in a report, use the GetDataSource method of the
Report object. This method takes a data source's alias as a parameter:
DataSourceBase ds = report1.GetDataSource("Products");
Working with Windows.Forms 21
22. Creating a report by using code
Let us consider how to create a report in code. We will create the following report:
Report report = new Report();
// register the "Products" table
report.RegisterData(dataSet1.Tables["Products"], "Products");
// enable it to use in a report
report.GetDataSource("Products").Enabled = true;
// create A4 page with all margins set to 1cm
ReportPage page1 = new ReportPage();
page1.Name = "Page1";
report.Pages.Add(page1);
// create ReportTitle band
page1.ReportTitle = new ReportTitleBand();
page1.ReportTitle.Name = "ReportTitle1";
// set its height to 1.5cm
page1.ReportTitle.Height = Units.Centimeters * 1.5f;
// create group header
GroupHeaderBand group1 = new GroupHeaderBand();
group1.Name = "GroupHeader1";
group1.Height = Units.Centimeters * 1;
// set group condition
group1.Condition = "[Products.ProductName].Substring(0, 1)";
// add group to the page.Bands collection
page1.Bands.Add(group1);
// create group footer
group1.GroupFooter = new GroupFooterBand();
group1.GroupFooter.Name = "GroupFooter1";
group1.GroupFooter.Height = Units.Centimeters * 1;
// create DataBand
DataBand data1 = new DataBand();
data1.Name = "Data1";
data1.Height = Units.Centimeters * 0.5f;
// set data source
data1.DataSource = report.GetDataSource("Products");
// connect databand to a group
group1.Data = data1;
22 Working with Windows.Forms
23. // create "Text" objects
// report title
TextObject text1 = new TextObject();
text1.Name = "Text1";
// set bounds
text1.Bounds = new RectangleF(0, 0,
Units.Centimeters * 19, Units.Centimeters * 1);
// set text
text1.Text = "PRODUCTS";
// set appearance
text1.HorzAlign = HorzAlign.Center;
text1.Font = new Font("Tahoma", 14, FontStyle.Bold);
// add it to ReportTitle
page1.ReportTitle.Objects.Add(text1);
// group
TextObject text2 = new TextObject();
text2.Name = "Text2";
text2.Bounds = new RectangleF(0, 0,
Units.Centimeters * 2, Units.Centimeters * 1);
text2.Text = "[[Products.ProductName].Substring(0, 1)]";
text2.Font = new Font("Tahoma", 10, FontStyle.Bold);
// add it to GroupHeader
group1.Objects.Add(text2);
// data band
TextObject text3 = new TextObject();
text3.Name = "Text3";
text3.Bounds = new RectangleF(0, 0,
Units.Centimeters * 10, Units.Centimeters * 0.5f);
text3.Text = "[Products.ProductName]";
text3.Font = new Font("Tahoma", 8);
// add it to DataBand
data1.Objects.Add(text3);
// group footer
TextObject text4 = new TextObject();
text4.Name = "Text4";
text4.Bounds = new RectangleF(0, 0,
Units.Centimeters * 10, Units.Centimeters * 0.5f);
text4.Text = "Count: [CountOfProducts]";
text4.Font = new Font("Tahoma", 8, FontStyle.Bold);
// add it to GroupFooter
group1.GroupFooter.Objects.Add(text4);
// add a total
Total groupTotal = new Total();
groupTotal.Name = "CountOfProducts";
groupTotal.TotalType = TotalType.Count;
groupTotal.Evaluator = data1;
groupTotal.PrintOn = group1.Footer;
// add it to report totals
report.Dictionary.Totals.Add(groupTotal);
// run the report
Working with Windows.Forms 23
24. report.Show();
The prepared report looks as follows:
Using own preview window
Using the EnvironmentSettings component (see the "Configuring the FastReport.Net
environment" section), you may tune up the standard preview window. The related properties
are contained inside the EnvironmentSettings.PreviewSettings property.
If you don't want to use the standard preview window for some reason, you may create your
own. To do this, use the PreviewControl control that can be added on your form. To show a
report in this control, connect it to the Report object by the following code:
report1.Preview = previewControl1;
To prepare a report and show it in the PreviewControl, use the Show method of the Report
object:
report1.Show();
your_form.ShowDialog();
or the following code:
if (report1.Prepare())
{
report1.ShowPrepared();
your_form.ShowDialog();
}
In these examples, the your_form is your form that contains the PreviewControl.
Using the methods of PreviewControl component, you can handle it from your code. You may
even turn off the standard toolbar and/or statusbar, using the ToolbarVisible, StatusbarVisible
properties. This is demonstrated in the DemosC#CustomPreview example project.
24 Working with Windows.Forms
25. Filtering tables in the Data Wizard
The Data Wizard can be called from the "Data|Add Data Source..." menu. Here you can set up
the connection and choose one or several data tables. By default, the wizard displays all tables
available in the selected connection. If you want to filter unnecessary tables, use the Config.
DesignerSettings.FilterConnectionTables event. The following example shows how to remove
the "Table 1" table from the tables list:
using FastReport.Utils;
Config.DesignerSettings.FilterConnectionTables += FilterConnectionTables;
private void FilterConnectionTables(
object sender, FilterConnectionTablesEventArgs e)
{
if (e.TableName == "Table 1")
e.Skip = true;
}
Working with Windows.Forms 25
28. Working with ASP.NET
Using the WebReport component
Let us consider the typical case of using the WebReport component.
assuming that you have a web project with all necessary data sources (for example,
AccessDataSource);
put the WebReport component on your web form:
in the "smart tag" menu, select the "Select Data Source..." item and choose one or several
data sources which you want to use in a report:
in the "smart tag" menu, select the "Design Report..." item to run the report designer:
28 Working with ASP.NET
29. create a report. Read more about this in the User's Manual;
close the designer;
save the changes in your project and run it. You will see a window with a prepared report.
Setting up web handler
WebReport requires a specific handler to be set in the web.config file. When you create a
report object in Visual Studio, necessary lines are automatically written to the configuration
file. The WebReport component checks the availability of the specified configuration at run
time of the application. If the required lines are not found in the web.config file an error is
thrown, requesting the file to be changed.
The web.config file should contain the following lines when used with an IIS6 server:
<system.web>
<httpHandlers>
<add path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.
WebExport"/>
</httpHandlers>
</system.web>
and with an IIS7 server, these lines:
<system.webServer>
<handlers>
<add name="FastReportHandler" path="FastReport.Export.axd" verb="*"
type="FastReport.Web.Handlers.WebExport"/>
</handlers>
</system.webServer>
The correct WebReport configuration lines in the web.config file must be used when
transferring your project from one server to another.
Check for correct working of the WebReport handler by means of the URL:
http://yoursite/app_folder/FastReport.Export.axd
An information message gives the version of FastReport and the server time.
Storing and loading a report
You may store a report in the following ways:
Method Description
in a web form Typical scenario that we have looked at before, uses this method. The
report is stored in the ReportResourceString property of the WebReport
component. This method has the following pros and cons:
Working with ASP.NET 29
30. + it's a simplest way to work with FastReport.Net;
- the report template is stored in the ViewState of your web form. It will be
transferred on a client side. It may slow down the work if the report has a
big size;
- this method is not compatible with "Medium Trust" mode.
The report loading is performed automatically.
in the .FRX file This method assumes that the report is stored in a file in a special folder
"App_Data". To do this:
run the report designer;
create a report and save it to the .FRX file;
in the Solution Explorer, select the "App_Data" folder, right-click it and
choose the "Add|Existing Item..." item. Select the report file that you
just saved;
select the WebReport component and clear its ReportResourceString
property;
select the "ReportFile" property, invoke its editor and choose the report
from "App_Data" folder.
This method has the following pros and cons:
+ the report is not transferred to a client machine;
- this method is not compatible with "Medium Trust" mode.
The report loading is performed automatically.
A report can also be loaded from WebReport.StartReport event handler.
Example code in StartReport:
(sender as WebReport).Report.Load(this.Server.MapPath("~/App_Data/report.frx"));
as a C#/VB.
NET class
In this method, you work with the report as a class. To do this:
design your report and save in to the .cs/.vb file. To do this, select "file
type" in the "Save" dialog. The file type maybe either .cs or .vb - it
depends on the script language in the report (it may be changed in the
"Report|Options..." menu);
include that file into your project. It's better to save it in the "App_Code"
folder;
clear both ReportResourceString and ReportFile properties of the
WebReport component.
This method has the following pros and cons:
+ you can work with the report as a regular class;
+ you can debug the report in the Visual Studio;
+ it's the only way to use a report in the "Medium Trust" mode;
- you cannot edit such a report. To do this, you need the original .FRX file.
To work with a report, create the WebReport.StartReport event handler. In
this handler, you should do the following:
create an instance of your report class;
30 Working with ASP.NET
31. register the data;
set the report to the Report property of the WebReport component.
Example of the StartReport event handler:
SimpleListReport report = new SimpleListReport();
report.RegisterDataAsp(your_data, "your_data_name");
WebReport1.Report = report;
The prepared report can be displayed from WebReport.StartReport event handler using the
property WebReport.ReportDone. Example code in StartReport to load and display a prepared
report:
(sender as WebReport).Report.LoadPrepared(this.Server.MapPath("~/App_Data/Prepared.fpx"));
(sender as WebReport).ReportDone = true;
Registering data
If you select the data source using the "smart tag" menu of the WebReport component, you
don't need to register the data manually. In this case, FastReport.Net stores the names of
data sources in the ReportDataSources property of the WebReport component.
In case you don't want to use such method of registering data, you need to do it manually. It
can be done by using the StartReport event of the WebReport component. In this event
handler, you can call the RegisterData and RegisterDataAsp methods of the report. The report
can be accessed through the WebReport.Report property:
webReport1.Report.RegisterData(myDataSet);
Read more about registering data in this section.
Passing a value to a report parameter
To pass a value to the report parameter, use the SetParameterValue method of the Report
object. This method was described in details in the "Working with Windows.Forms" chapter.
To use this method in ASP.NET, you need to create the event handler for the StartReport
event of the WebReport component. The report can be accessed through the WebReport.
Report property:
webReport1.Report.SetParameterValue("MyParam", 10);
Working in the "Medium Trust" mode
This mode is used by many shared hosting providers. In this mode, the following actions are
restricted:
report compilation is impossible;
impossible to use MS Access data source;
impossible to use the RichObject;
Working with ASP.NET 31
32. impossible to use some export filters that use WinAPI calls or temp files (PDF, Open Office);
there may be other restrictions, depending on the provider.
To work with a report in this mode, you need to store a report as a C#/VB.NET class, as
described in the "Storing and loading a report" section. In this case, the report compilation is
not required.
Besides that, it is necessary to add System.Windows.Forms.DataVisualization.dll assembly into
the GAC. This assembly is a part of Microsoft Chart Control and is used in FastReport to draw
charts. Consult with your shared-hosting provider regarding adding this assembly into the GAC.
Working in Web Farm and Web Garden architectures
To use the FastReport report generator in a multi-server (Web Farm) or multi-processor (Web
Garden) architecture there are additional requirements for creating special storage for data
synchronization between WebReport objects.
Add the following lines to the configuration file web.config:
<appSettings>
<add key="FastReportStoragePath" value="FSWebReport_Exchange"/>
<add key="FastReportStorageTimeout" value="10"/>
<add key="FastReportStorageCleanup" value="1"/>
</appSettings>
- FastReportStoragePath : path to the folder for temporary files when working in a multi-server
architecture, each server must have access to this folder
- FastReportStorageTimeout : cache time for reports, in minutes
- FastReportStorageCleanup : time for checking the expired cache entries, in minutes
Check for correct configuration by means of the URL:
http://yoursite/app_folder/FastReport.Export.axd
You should see "Cluster mode: ON".
Working with ASP.NEÒ MVC
You will not have any problems when using WebReport in ASPX (MVC 2) – it is only necessary
to drag the control from the Toolbox to the page. WebReport will make all the required changes
to web.config automatically. Let's look at a demo of WebReport in aspx, to be found in
folder DemosC#MvcDemo.
To use WebReport in Razor (MVC 3,4) you will need to add a line with the handler definitions to
the web.config file in the root folder of your web-application.
Add this line in section <system.web> <httpHandlers> for use with IIS6:
<add path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.
WebExport" />
and add this line in section <system.webServer> <handlers> for use with IIS7:
<add name="FastReportHandler" path="FastReport.Export.axd" verb="*"
type="FastReport.Web.Handlers.WebExport" />
Then modify the web.config file in the folder containing Views. Add these lines in section
<system.web.webPages.razor> <namespaces>:
<add namespace="FastReport" />
32 Working with ASP.NET
33. <add namespace="FastReport.Web" />
Add these lines to file _Layout.cshtml in tag <head>:
@WebReportGlobals.Scripts()
@WebReportGlobals.Styles()
Now you can draw the report on the View. Go to the controller and create a WebReport:
WebReport webReport = new WebReport(); // create object
webReport.Width = 600; // set width
webReport.Height = 800; // set height
webReport.Report.RegisterData(dataSet, "AppData"); // data binding
webReport.ReportFile = this.Server.MapPath("~/App_Data/report.frx"); // load
the report from the file
ViewBag.WebReport = webReport; // send object to the View
Go to View and add the line:
@ViewBag.WebReport.GetHtml()
Similar code to create WebReport you can also write directly in View.
Let's look at the demo of WebReport in Razor in folder DemosC#MvcRazor. There are various
samples for loading into the report, including pre-prepared, and there is an example of using
the event StartReport.
Don't forget to add the missing dll in the bin directory.
Example of export in MVC
When using FastReport.Net together with the ASP.Net MVC framework there is an easy method
for creating a file in any supported format from a button press on the HTML form.
Add this code in the View:
@using (Html.BeginForm("GetFile", "Home"))
{
<input id="pdf" type="submit" value="Export to PDF" />
}
- GetFile : name of the controller handler
- Home : name of the controller (eg: HomeController.cs)
Add the name space in the controller:
using FastReport.Export.Pdf;
Add method GetFile in the controller:
public FileResult GetFile()
{
WebReport webReport = new WebReport();
// bind data
System.Data.DataSet dataSet = new System.Data.DataSet();
dataSet.ReadXml(report_path + "nwind.xml");
webReport.Report.RegisterData(dataSet, "NorthWind");
Working with ASP.NET 33
34. // load report
webReport.ReportFile = this.Server.MapPath("~/App_Data/report.frx");
// prepare report
webReport.Report.Prepare();
// save file in stream
Stream stream = new MemoryStream();
webReport.Report.Export(new PDFExport(), stream);
stream.Position = 0;
// return stream in browser
return File(stream, "application/zip", "report.pdf");
}
Example for Excel 2007:
using FastReport.Export.OoXML;
...
webReport.Report.Export(new Excel2007Export(), stream);
...
return File(stream, "application/xlsx", "report.xlsx");
FastReport .Net and jQuery
The WebReport object from FastReport.Net uses the jQuery library. You may already be using
this library in your project.
To avoid duplication of jQuery boot scripts and styles in the client browser when working with
markup Razor, you must use the following lines in _Layout.cshtml:
@WebReportGlobals.ScriptsWOjQuery()
@WebReportGlobals.StylesWOjQuery()
replacing these lines, which include all jQuery files:
@WebReportGlobals.Scripts()
@WebReportGlobals.Styles()
You must set the property ExternalJquery = true (defaults to false) when working with ASPX
markup.
34 Working with ASP.NET
36. Working with WCF
WCF service library FastReport.Service.dll
FastReport .NET contains the library FastReport.Service.dll (only in the .NET 4.0 package).
This library is a WCF Service Library and is intended for use in custom applications that perform
the functions of the service.
The library contains the following functions:
List<ReportItem> GetReportsList();
returns a list of available reports. Each item is returned as a ReportItem object. Reports are
stored on a hard drive on a server that is running the service. Files are sorted in alphabetical
order.
List<ReportItem> GetReportsListByPath(string path);
returns a list of available reports by path. Files are sorted in alphabetical order.
List<GearItem> GetGearList();
returns a list of available formats that can generate service reports as elements GearItem.
Stream GetReport(ReportItem report, GearItem gear);
returns a stream of the result of building a report. Parameters “report” and “gear” can be used
from the lists previously obtained, or by creating new objects with the required properties. The
returned stream does not support positioning.
Let's look at list elements.
ReportItem
public class ReportItem
{
public string Path;
public string Name;
public string Description;
public Dictionary<string, string> Parameters;
}
Path – path to the report file on the server, relative to the root folder for storing reports. The
file extension of the report must be *.frx. This property is used to identify a specific report
with further queries.
36 Working with WCF
37. Name – name of the report, taken from the metadata of the report. If the metadata of the
report contains an empty name then the property contains a filename without an extension.
This property can be used to build an interactive list of available reports in your application
(eg: in a ListBox).
Description – description of the report, taken from the metadata of the report.
Dictionary<string, string> Parameters – dictionary of report parameters, may be filling
parameters, which will be subsequently transferred to the report. It supports only the string
values that must be considered when designing a report template.
GearItem
public class GearItem
{
public string Name;
public Dictionary<string, string> Properties;
}
Name – name of the format : may contain one of the following strings:
Name Description
PDF Adobe Acrobat file
DOCX Microsoft Word 2007 file
XLSX Microsoft Excel 2007 file
PPTX Microsoft PowerPoint 2007 file
RTF Rich Text file – supported by many text editors
ODS Open Office Spreadsheet file
ODT Open Office Text file
MHT Compressed HTML file together with the images, can be opened in Internet
Explorer
CSV Comma separated values file
DBF dBase file
XML Excel XML table – without images
TXT Text file
FPX FastReport.Net Prepared report file
Dictionary<string, string> Properties – dictionary of parameters of a report. A complete list of
supported parameters with default values is available on requesting the server to list formats.
When creating a service you must add the following lines in your App.config or Web.config:
<appSettings>
<add key="FastReport.ReportsPath" value="C:Program
filesFastReportsFastReport.NetDemosWCF" />
<add key="FastReport.ConnectionStringName" value="FastReportDemo" />
<add key="FastReport.Gear" value="PDF,DOCX,XLSX,PPTX,RTF,ODS,ODT,MHT,CSV,DBF,
XML,TXT,FPX" />
Working with WCF 37
38. </appSettings>
FastReport.ReportsPath – specifies the path to the folder with the reports, a list of which will
be transmitted to the client.
FastReport.ConnectionStringName – name of the connection string to the database, which is
stored in the configuration section <connectionStrings>. Used to replace the internal
connection string in the report template.
FastReport.Gear – list of available formats. You can select only those required and change the
order of the names.
Schematic of using FastReport.Service:
And, if you already know exactly what to report and in which format to receive it (this reduces
the number of queries made to the service):
Important points to note when you create report templates for use in the services:
- dialogs in the reports are not supported and will be ignored;
- each report must include an internal DataConnection, whose connection string for the report
service is replaced by a string from the configuration.
Examples of use of FastReport.Service.dll can be found in the
folders DemosC#WCFWebService , DemosC#WCFWindowsService ,
DemosC#WCFWebClient , DemosC#WCFClient.
An example configuration file service - FastReport.Service.dll.config.
38 Working with WCF
39. Simple example of WCF service
This example does not require programming and is intended for testing the library and the
configuration file. To complete the task, we will use the program WcfSvcHost.exe, that comes
with Visual Studio:
1. Create a folder for our project anywhere on the disk, eg: as C:WCFFastReport
2. Copy these files to the folder : FastReport.Service.dll, FastReport.Service.dll.config,
FastReport.dll and FastReport.Bars.dll
3. Create two sub-folders Data and Reports
4. Copy the database file to the Data folder from the Demos folder FastReport.
NetDemosReportsnwind.xml
5. Copy the contents of folder FastReportsFastReport.NetDemosWCF to Reports – it
contains test reports with built-in connections to the database, which are essential when used
with library FastReport.Service.dll
6. Open the configuration file FastReport.Service.dll.config in any text editor
7. Change the path to the reports in section <appSettings>
<add key="FastReport.ReportsPath" value="C:WCFFastReportReports" />
8. Change the connection string in section <connectionStrings>:
<add name="FastReportDemo" connectionString="XsdFile=;XmlFile=C:
WCFFastReportDatanwind.xml"/>
9. Create batch file service.bat containing the line:
"C:Program FilesMicrosoft Visual Studio 10.0Common7IDEWcfSvcHost.exe" /service:C:
WCFFastReportFastReport.Service.dll /config:C:WCFFastReportFastReport.Service.dll.
config
10. Run service.bat from Explorer with administrator rights ('Run as administrator'). You will see
an icon for WCF Service Host in the system tray. Double-click on the icon:
Working with WCF 39
40. 11. Open a web browser and go to address http://localhost:8732/FastReportService/
This shows the Service working normally. You can change the port number of the service in the
configuration file:
<add baseAddress="http://localhost:8732/FastReportService/" />
Let's connect to our service from the demo example FastReport.NetDemosC#WCFClient
1. Open WCFServiceClient.csproj in Visual Studio
2. Right-click in Solution Explorer on "Service References:ReportService" and select "Configure
Service Reference" in the popup
40 Working with WCF
41. 3. Review the service address, which should end with “/mex” (metadata exchange)
4. Compile and run an example.
Working with WCF 41
42. Creating Web Service using FastReport.Service.dll
There is an easy way to implement a web service using the library FastReport.Service.dll (WCF
Service Library), which is supplied with FastReport .Net.
Our example is based on creating a simple web application with web service functions, but you
can modify your existing project based on .NET Framework 4.0 or later.
Run Visual Studio and create a new ASP.NET Web Application project under .NET Framework
4.0.
42 Working with WCF
43. Add references to libraries FastReport.dll, FastReport.Bars.dll, FastReport.Service.dll
Create a new text file with name ReportService.svc in the site root.
Working with WCF 43
44. Add these lines to the file:
<%@ ServiceHost Service="FastReport.Service.ReportService" %>
<%@ Assembly Name="FastReport.Service" %>
Open web.config and add this code in <configuration> section:
<appSettings>
<!-- path to folder with reports -->
<add key="FastReport.ReportsPath" value="C:Program
filesFastReportsFastReport.NetDemosWCF" />
<!-- name of connection string for reports -->
<add key="FastReport.ConnectionStringName" value="FastReportDemo" />
<!-- Comma-separated list of available formats PDF,DOCX,XLSX,PPTX,RTF,ODS,ODT,
MHT,CSV,DBF,XML,TXT,FPX.
You can delete any or change order in this list. -->
<add key="FastReport.Gear" value="PDF,DOCX,XLSX,PPTX,RTF,ODS,ODT,MHT,CSV,DBF,
XML,TXT,FPX" />
</appSettings>
<connectionStrings>
<add name="FastReportDemo" connectionString="XsdFile=;XmlFile=C:Program
FilesFastReportsFastReport.NetDemosReportsnwind.xml"/>
</connectionStrings>
<system.serviceModel>
<services>
<service behaviorConfiguration="FastReportServiceBehavior" name="FastReport.
Service.ReportService">
<endpoint address="" binding="wsHttpBinding" contract="FastReport.Service.
IFastReportService">
44 Working with WCF
45. <identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="FastReportServiceBehavior">
<serviceMetadata httpGetEnabled="True" />
<serviceDebug includeExceptionDetailInFaults="True" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding messageEncoding="Mtom"
closeTimeout="00:02:00" openTimeout="00:02:00"
receiveTimeout="00:10:00" sendTimeout="00:02:00"
maxReceivedMessageSize="67108864" maxBufferSize="65536"
transferMode="Streamed">
<security mode="None">
<transport clientCredentialType="None" />
</security>
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>
The key "FastReport.ReportsPath" should contain a path to the folder with the reports. You
can set it to the demo folder «FastReport.NetDemosWCF», for example.
The key "FastReport.ConnectionStringName" should contain the connection string name. This
line should be registered in section <connectionStrings>.
Let's run our site and check the availability of a Web service by accessing the file
ReportService.svc.
Working with WCF 45
46. When you deploy the project on the server, be sure to check that files FastReport.dll,
FastReport.Bars.dll, FastReport.Service.dll are in the folder bin.
Examples of client programs can be found in the folders FastReport.NetDemosC#WCFClient
and FastReport.NetDemosC#WCFWebClient. Open each project in Visual Studio, right-click
on ReportService and select Configure Service Reference in the popup.
46 Working with WCF
47. Specify the address of an existing web service in the configuration window.
Working with WCF 47
48. Creating the WCF service hosted in windows service
Open Visual Studio and create a project WindowsService.
Open the designer of Service1.cs
48 Working with WCF
49. Change the name of the service to your own choice:
Working with WCF 49
50. Right-click on window and select “Add Installer” in the popup:
Edit the properties of the component serviceInstaller1 - set up a DisplayName.
50 Working with WCF
51. In the component properties of serviceProcessInstaller1 set the type of account for the
service as LocalSystem.
Add references in the project to System.ServiceModel and FastReport.Service.dll :
Working with WCF 51
52. Create an application configuration file:
Copy the following text into the new app.config file:
<?xml version="1.0"?>
<configuration>
52 Working with WCF
53. <appSettings>
<!-- path to folder with reports -->
<add key="FastReport.ReportsPath" value="C:Program
filesFastReportsFastReport.NetDemosWCF" />
<!-- name of connection string for reports -->
<add key="FastReport.ConnectionStringName" value="FastReportDemo" />
<!-- Comma-separated list of available formats PDF,DOCX,XLSX,PPTX,RTF,ODS,ODT,
MHT,CSV,DBF,XML,TXT,FPX.
You can delete any or change order in this list. -->
<add key="FastReport.Gear" value="PDF,DOCX,XLSX,PPTX,RTF,ODS,ODT,MHT,CSV,DBF,
XML,TXT,FPX" />
</appSettings>
<connectionStrings>
<add name="FastReportDemo" connectionString="XsdFile=;XmlFile=C:Program
FilesFastReportsFastReport.NetDemosReportsnwind.xml"/>
</connectionStrings>
<system.web>
<compilation debug="true" />
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.
ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.
Web.Extensions, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" serviceUri="" />
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.
ClientRoleProvider, System.Web.Extensions, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400" />
</providers>
</roleManager>
</system.web>
<!-- When deploying the service library project, the content of the config
file must be added to the host's
app.config file. System.Configuration does not support config files for
libraries. -->
<system.serviceModel>
<services>
<service behaviorConfiguration="FastReportServiceBehavior" name="FastReport.
Service.ReportService">
<endpoint address="" binding="wsHttpBinding" contract="FastReport.Service.
IFastReportService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8732/FastReportService/" />
</baseAddresses>
</host>
</service>
</services>
Working with WCF 53
54. <behaviors>
<serviceBehaviors>
<behavior name="FastReportServiceBehavior">
<serviceMetadata httpGetEnabled="True" />
<serviceDebug includeExceptionDetailInFaults="True" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding messageEncoding="Mtom"
closeTimeout="00:02:00" openTimeout="00:02:00"
receiveTimeout="00:10:00" sendTimeout="00:02:00"
maxReceivedMessageSize="67108864" maxBufferSize="65536"
transferMode="Streamed">
<security mode="None">
<transport clientCredentialType="None" />
</security>
</binding>
</basicHttpBinding>
</bindings>
</system.serviceModel>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
</configuration>
Go to the editor of Service1.cs and add the line:
using System.ServiceModel;
Modify the class of service so it looks like:
public partial class ReportService : ServiceBase
{
ServiceHost reportHost;
public ReportService()
{
InitializeComponent();
}
protected override void OnStart(string[] args)
{
if (reportHost != null)
reportHost.Close();
reportHost = new ServiceHost(typeof(FastReport.Service.ReportService));
reportHost.Open();
}
protected override void OnStop()
{
reportHost.Close();
reportHost = null;
}
}
54 Working with WCF
55. You can install the service using the command line utility InstallUtil.exe, which comes with .NET
Framework, for instance:
C:WindowsMicrosoft.NETFrameworkv4.0.30319InstallUtil.exe "C:MyProjectsWcfService1
WindowsService1binDebugWindowsService1.exe"
And you can start the service with the command:
net start ReportService
Open a web browser and check the address http://localhost:8732/FastReportService/, which
was set in app.config in baseAddress. You can change the folder and port to your own choice.
Commands to stop and to uninstall the service:
net stop ReportService
C:WindowsMicrosoft.NETFrameworkv4.0.30319InstallUtil.exe /u "C:
MyProjectsWcfService1WindowsService1binDebugWindowsService1.exe"
This example is located in folder "DemosC#WCFWindowsService".
Working with WCF 55