1 (edited by borisavljevic 2020-05-17 23:11:18)

Topic: [SOLVED] Print only selected row (report)

Hi all,

What I'm trying to do is to print only data from selected row in Form1.TableGrid1.
There is one solution by Dmitry but there is no difference between buttons "Print Selected" and "Print All" IF NO ROW IS SELECTED, both buttons print all data.
What I need is, if no row is selected, then disable button "Print Selected" or show message "You have to select record for printing". Something like this: if Form1.Tablegrid1 number of selected rows = 0 then Form1.btnPrint.enabled := False.


Thank you in advance for help.

Vladimir

2 (edited by derek 2020-05-17 18:39:15)

Re: [SOLVED] Print only selected row (report)

Hi,
Please see attached for a couple of ways of doing this (first option is to disable the print button, second option is to make it invisible), but there are other ways as well.
Derek.

Post's attachments

Attachment icon boris.zip 675.12 kb, 549 downloads since 2020-05-17 

Re: [SOLVED] Print only selected row (report)

Just perfect.

Thank you Derek,

Vladimir