logo
small logo
  • Produkty
  • Zamów
  • Wsparcie techniczne
  • Articles
  • Customer panel Wsparcie techniczne
    • en
    • de
    • JP
    • ZH
  • Glówna strona
  • /
  • Articles
  • /
  • How to connect the IBM DB2 database in reports designer FastReport.Net
  • Jak dokonać dziedziczenia raportów w FastReport.NET

    29 stycznia 2021

    Kiedy masz za zadanie stworzyć dużą liczbę raportów w ramach jednego stylu korporacyjnego, stajesz przed

    read more
  • FastCube – szybki OLAP Cube Engine i Pivot Grid

    29 lutego 2020

    Trudno sobie wyobrazić wykonanie analizy danych bez technologii OLAP (On-Line Analytical Processing). Jednak są różne

    read more
  • Jak programowo skonfigurować domyślne ustawienia klienta pocztowego dla wysyłania maili z FastReport.NET

    12 lutego 2021

    Jak wiele innych generatorów raportów, FastReport .NET pozwala na wysłanie raportu pocztą elektroniczną w dowolnym

    read more
  • Tworzenie i wyprowadzanie kodów kreskowych ITF-14 w aplikacjach .NET

    25 lutego 2021

    ITF-14 (Interleaved Two of Five) to dwupasmowy kod numeryczny, znany również jako kod o wysokiej

    read more
  • Rodzina generatorów raportów FastReport krótka recenzja

    23 marca 2020

    Bez raportowania nie da się prowadzić działalności w żadnej dziedzinie. Biurokracja jest nieodłączną częścią ludzkiego

    read more

How to connect the IBM DB2 database in reports designer FastReport.Net

15 listopada 2019

To connect the report to a DB2 database, you need to connect the plugin to the designer reports. This plug is a connector. But first you need to collect this connector from the project:

С:\Program Files (x86)\FastReports\FastReport.Net\Extras\Connections\FastReport.DB2

The resulting FastReport.DB2.dll library is our plug-in.

To add it, run the report designer and open the File->Options menu. On the Plugins tab, click add and select the library you've created. Then restart the designer. Let's move on to creating a report data source. Add a new connection:

 

Objects, DB2DataConnection, appeared on the list of available connectors. Choose it and set up the connection:

 

If the database server is deployed locally, then it is not necessary to enter the server name. We proceed to the choice of tables.

 

At this stage, you can filter the data by using a SQL query. It will be created based on the representation of the data sample on request. The main advantage of this method - the ability to use parameters in a SQL query. Parameters can receive data from the report variables, functions and other expressions. To create a presentation based on your own SQL query, click the "Add SQL query ...".

 

Defining the view name, and move on to writing the SQL query:

 

This request contains a parameter defined by the @ symbol. This parameter we will create on the next step.

Parameter name should be the same as in an  SQL query. As an expression the report parameter is used. A report parameter is set to 'C'. So we filter out employees by the first letter of the name. In the end, in the final report, we will get the record:

 

So you can filter data using query parameters. A value can be passed to the report from the outside, using a URL. This means that you can specify what data you need in your web application in advance, before generating the report.

about product pobierz zamów
avatar
Dmitriy Fedyashov
Technical Writer
Fast Reports Team: Dmitriy Fedyashov - Technical Writer at Fast Reports
.NET FastReport IBM DB2

Add comment
logo
  • 800-985-8986 (English, US)
  • +4930568373928 (German)
  • +55 19 98147-8148 (Portuguese)
  • info@fast-report.com
  • 901 N Pitt Str #325 Alexandria VA 22314
  • Zamów
  • Pobierz
  • Dokumentacja
  • Opinie użytkowników
  • Jak odinstalować nasze produkty
  • Ticket system
  • FAQ
  • Tutorial Video
  • Forum
  • Articles
  • Our News
  • Prasa o nas
  • Partnerzy
  • Extended licensing
  • Kontakty

© 1998-2022 by Fast Reports Inc.

  • Poufność