SQL Server Reporting Services (SSRS) provides a set of on-premises tools and services that create, deploy, and manage paginated reports. Download SQL Server 2022 Reporting Services from the Microsoft Download Center.
(Retrived from https://learn.microsoft.com/en-us/sql/reporting-services/create-deploy-and-manage-mobile-and-paginated-reports?view=sql-server-ver16 on January 04, 2024)
To be able to locally modify and have access to the reports inside a genio-generated solution, you need to setup the Microsoft SSRS. First, go to this link here and download the latest version of the software. Once this is done, start the installation. Choose the free version with the "Developer" status and pursue the setup.
Once it is installed, you will need to configure the server: In most cases, you will want to connect to your local machine for testing purposes (PCNAME). Select SSRS too. First, setup the Web service URL. The web service URL is important as it is the link of communication between your local files and your application. You have nothing to do except clicking apply. It will run the web service, used to store the reports.
After, setup the report database server. Click the menu Database and enter change database.
To access the report portal URL, simply visit either http://yourserver:port/ReportServer or http://yourserver:port/Reports.
Within the Report Server Portal, you have the ability to configure folders and designate specific data sources, enabling easy access to view reports once they are created.
Report Builder provides a productive report-authoring environment for IT professionals and power users. The download provides a stand-alone installer for Report Builder.
Report Builder provides data visualizations that include charts, maps, sparklines, and data bars that can help produce new insights well beyond what can be achieved with standard tables and charts. Use Report Builder to create reports and shared datasets. Publish report parts, and then browse the Report Part Gallery to reuse existing report parts as building blocks for creating new reports quickly with a “grab and go” experience.
You can download in https://www.microsoft.com/en-us/download/details.aspx?id=53613.
After opening the report builder, you can create a new report from a table, chart, or a blank report.
You can also open a pre-made report or select a new dataset. In this example, we will choose a blank report.
Choose a Data Source, which should be related to a client database. For example, the client's production database or a testing database.
Here, you can select a shared database connection or an connection embedded.
The connection string should appear as follows:
Data Source=”YOURSERVER”;Initial Catalog=DATABASECHOSEN
You should Test the connection. If it connects successfully, proceed.
Here, you can also choose a shared dataset or embed one directly into the report.
When opting for the second option (embedding in the report):
If you prefer, you can use the Query Designer, which simplifies the process of inserting fields.
Use Case: I want to emit the passenger's boarding pass.
Example:
SELECT
FLIBOARD.GATE
,FLIBOARD.BAGGAGE
,FLIBOARD.FOODPREF
,FLIPASSE.FULLNAME
,FLIFLIGH.DEPDATE
,FLIFLIGH.DEPTIME
,FLIFLIGH.ARRIDATE
,FLIFLIGH.ARRITIME
,departure.NAME as Departure,
arrival.NAME as Arrival
FROM
FLIBOARD
INNER JOIN FLIPASSE
ON FLIBOARD.CODPASSE = FLIPASSE.CODPASSE
INNER JOIN FLIFLIGH
ON FLIBOARD.CODFLIGH = FLIFLIGH.CODFLIGH
INNER JOIN FLIAIRPO departure
ON FLIFLIGH.CODDAIRP= departure.CODAIRPO
INNER JOIN FLIAIRPO arrival
ON FLIFLIGH.CODAAIRP= arrival.CODAIRPO
WHERE FLIBOARD.CODBOARD=@board_codboard
If you utilize the Query Designer, you'll end up with something like this:
Don't forget to select the required fields and establish relationships with other tables. Ensure that when you have written the query, the parameters are included.
Finally, click the 'Run Query' button to ensure you have results.
The Report Builder window is designed to help you easily organize your report resources and quickly build the paginated reports you need. The design surface is at the center of the window, with the ribbon and the panes around it. The design surface is where you add and organize your report items.
ou can easily drag and drop the fields into the report and set labels or insert graphs as you desire.
Check the Microsoft documentation to learn more:https://learn.microsoft.com/en-us/sql/reporting-services/report-builder/report-design-view-report-builder?view=sql-server-ver16
In the example use case, the report has the following configuration:
There is a 'Run' button located in the Home tab, which allows you to validate the report. If you have parameters, you need to check them first.
If the final report meets your requirements, save it.
We recommend storing the report locally in the Genio Project folder where you are currently working.
Create a 'Reports' folder next to the GEN_CLIENT
folder and store the report inside.
The report file has the .rdl
extension.
Inside the Webadmin, go to System Configuration and Select More. In Crystal report > Reports path, put the path to the report's templates (your local files in your PC). For the inputs in SQL Service Reporting Services:
To confirm the credentials, go to the report server URL but open it in an anonymous page. In this mode, it will prompt you for credentials, which are the same as those used in the Webadmin.
Here's what it should look like :
Finally, you will need to deploy the report to your web service. Then, go to Report Management and Select More. You should click on the Deploy button.
Once this procedure is finished, you should have your reporting server ready to use.
On a side note, it is important that the report you are accessing are connected to the good database. enter the .rdl file(s) you will be using and verify your Data Sources to be sure it's connected to the one used by your application. {.is-info}
You can print or view reports right in the form or in the menu.
In the form, you can insert a button to print a pre-designed form.
Component type: Report button.
Component section
Report section
comodatos
.You can print records from a specific menu list by creating a child report menu after the list where you want to view the report.
Menu item Type: Report
If you add a menu of type Report to Genio there exists a few different ways to pass parameters to the report.
You can pass glob fields to the report. If you put the field [GLOB->EXAMPLE] as a parameter, the application will pass a parameter with name g_example to the report. This means the report must have a parameter with that name and matching type
If you have a menu list followed by a report and the base areas match, the application will pass the primary key of the selected record to the report.
If the area of the list is PERSO with the primary key CODPESSO, the application will pass a parameter with name pesso_codpesso
Within the Resources menu, you'll find a dedicated section for Reports, allowing you to review all reports utilized in your project.
This is used as a reference point, enabling you to track where each report has been employed.
Before configuring your SSRS report to display QR codes, it is necessary to install the required components on the computer running the Report Server:
Custom
Server
Server > Other > Relatórios > Reporting Services > QRCoder
is checked (you may uncheck all the other boxes)Install
Assuming the required assemblies were correctly installed into the global assembly cache (GAC), it is necessary to set the reference to the assembly on the RDL (Report Definition Language). Using Microsoft Report Builder:
...
button to browse and select the component (QuidgestQRCoder.dll, should be located at %WINDIR%\assembly\GAC_MSIL\QuidgestQRCoder
) Once the necessary configuration is in place, converting a text field to a QR code representation is very simple:
=QuidgestQRCoder.QRCode.StringToQRcode(Fields!NAME.Value)
converts the text field NAME to a QR code representation)Note that this guide assumes that the necessary Data Sources and Datasets are already configured in order to access the desired text fields.
We found that there are multiple ways to display a QR code in a SSRS report. We believe that the method described in this guide is the most flexible of all, as it enables to quickly convert simple text fields to their correspoding QR code representation. However, there are some alternative ways: