Lazarus
Programming => Databases => Topic started by: Pe3s on November 24, 2022, 09:04:47 pm
-
Hello, greetings to all users, mojen question
is it possible to print from the database , create reports ?
-
Don‘t understand the question….
A database is a source of information.
Grab that information, use it to fill your report-template (whichever one, lazreport, Word-document, whatever), print
-
What do i need to do to make the report only show the selected row in the table?
-
What do i need to do to make the report only show the selected row in the table?
What report do you use?
-
LazReport
-
You can just move your memos linked to query from 'Master Data' band to the 'Report title' band and delete 'Master Data' band. LazReport will then show you current record.
Although, in this case I would rather manually fill variables (or memos) from program.
You can also use OnGetValue event of the report to fill memos.
You have plenty of ways to do it.
-
Take a look in the Examples folder of the lazreport package, there are a number of example projects to show how to use it.
-
I looked at the examples of LazReport and I have a question to press the variable you need to use OnGetValue ?
-
Thank you :)