W
W
White_Bambie2020-07-18 08:41:13
MySQL
White_Bambie, 2020-07-18 08:41:13

How to connect a database programmatically to FastReport .NET?

It is necessary to click on the button on the form to connect to the MySQL database, connect to the table (let's say Table) and build a fastreport report (report1) with subsequent display in the previewControl.
Connection code.

MySqlConnection con = new MySqlConnection(AppSetting.ConnectonString());

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-07-18
@White_Bambie

The most universal way to throw everything in the designer and then look into the InitializeComponents () method.
The studio will do everything for you. You will only need to copy the code and adapt it for yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question