Page 1 of 1
Using the Worshop demo
Posted: Wed Nov 08, 2017 2:17 pm
by makina
How to execute an stored procedure and load the fields and data from it into the report workshop.
how to avoid the use of the report design helper form and also avoid the use of reportDocpProperties.
i mean, i want to load the fields and data not from a table but from a resulset that executes an stored procedure.
Re: Using the Worshop demo
Posted: Wed Nov 08, 2017 8:56 pm
by Sergey Tkachenko
About stored procedures
I never worked with stored procedures myself, sorry... But I believe you can use CALL SQL statement just like SELECT in report data queries.
If it works in TDataQuery, it must work in Report Workshop as well.
About avoiding using UI
User interface is not necessary, you can create reports in code.
We have several demo projects showing how to create reports in code. For example, for FireDAC, all numbered demo projects in Demos\FireDAC\
I do not understand the problem with reportDocpProperties. What do you mean? There is TRVReportDocObject class, it is required to store document-related report properties, for example a data query applied to the whole document. But using this object directly is not required. For example, you can use RVReportSetRootDataQuery function to define the data query to apply to the whole document.