Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question