Hello every one
I would like to ask a very small question. what is the code that should be written to open a picture inside the button.
I have already made the button, and the trigger is when push button, what I want is when I click the button it opens a picture in this directory
the name of the picture is taken from table1 the colum serial_number
I tried host('F:\Amjad\Amjad\amjad\1.jpg'); it didn't work
Thanks for help
For client/server, you can open an image or any document file with something like this:
-- THE VALUE OF :T1 SHOULD BE THE PATH AND FILE YOU WANT TO OPEN
-- FOR EXAMPLE F:\Amjad\Amjad\amjad\1.jpg
my_cmd := 'rundll32 shell32,ShellExec_RunDLL '|| :T1;
In this example, the image will open in whatever application is associtated with the "jpg" extension. On a Windows client, that likely will be Microsoft Paint.
Also, please consider upgrading to the latest supported version (126.96.36.199).