Topic: EXPORT TO EXCEL

Hello MVD!

Is there a way to export tablegrid to excel with password?

ty!

Re: EXPORT TO EXCEL

Hello.


Create OnClick event for the excel button

procedure Form1_Button1_OnClick (Sender: TObject; var Cancel: boolean);
begin
    if InputBox('Enter passwod', 'Password:', '') <> 'password' then
    begin
        Cancel := True;
        ShowMessage('Password is incorrect');
    end;
end;
Dmitry.

3 (edited by manixs2013 2019-03-14 13:10:15)

Re: EXPORT TO EXCEL

Thanks MVD!

I am sorry, what about the password masking?

Thanks4x

Re: EXPORT TO EXCEL

InputDialog does not support password masking, you should use separate form for password dialog.


I made an example for you:

Post's attachments

Attachment icon Password dialog.zip 4.07 kb, 304 downloads since 2019-03-14 

Dmitry.

Re: EXPORT TO EXCEL

MVD THANKS THANKS THANKS THANKS!