Page 1 of 1

add a data source to report

Posted: Wed May 27, 2020 7:33 am
by jk50po
Hi Stimulsoft team.
The data source I configured here is the MSSQL table model, which cannot be directly supported by the current designer, so here I am going to return the DataSet through the DAX in the background and pass it to the designer.
I am going to add a button to the data source and jump to a method in the background. I need to get the designer object and add a data source to this object in this method.
I want to ask how to get the designer object and add a data source to this object.
At present, the examples provided in the official website only include adding a new report and then adding a data source to this object or adding a data source in the PreviewReport method. No code has been found to add a data source to an existing report object.
thanks in advance

Re: add a data source to report

Posted: Wed May 27, 2020 8:43 pm
by Lech Kulikowski
Hello,

Please clarify which product, version and designer are you use?

Thank you.

Re: add a data source to report

Posted: Fri May 29, 2020 2:47 am
by jk50po
I am using Stimulsoft Dashboard Web Net Core 2020.2.3

Re: add a data source to report

Posted: Fri May 29, 2020 9:35 am
by Lech Kulikowski
Hello,

You can add a direct connection to the database in the designer or prepare, fill data to the DataSet and register it with RegData() method.

Thank you.