To open a document file using it’s default application use OpenDocument function that exists in LCLIntf unit:
procedure TForm1.Button1Click(Sender: TObject); begin if OpenDialog1.Execute then OpenDocument(OpenDialog1.FileName); end;
To open a document file using it’s default application use OpenDocument function that exists in LCLIntf unit:
procedure TForm1.Button1Click(Sender: TObject); begin if OpenDialog1.Execute then OpenDocument(OpenDialog1.FileName); end;
hei i am using ubuntu 12.04 and tried your code but doesn’t work, please help
I’m using ubuntu 12.04 and it works just fine.
What is the error did you get?