Home > Back-end >  How to directly open access the OLE object directly in Delphi
How to directly open access the OLE object directly in Delphi

Time:10-17

How to directly open access the OLE object directly in Delphi

I designed an OLE object types in the access field, various formats of files can be covered by the Stream can be saved into database,
Now intend using a button in the program to open this file stored in the repository directly, how to do it, please help, thank you!
Is the writing different format of file open? I saw on the Internet has opened the image and word, but must be targeted to write code, is there a general method, according to different types of files open match

CodePudding user response:

Can first the content in this field is stored in a temporary file (need to know the original file extensions), then calls the ShellExecute API function to open the can,

CodePudding user response:

reference 1st floor Oraclers response:
can first the content in this field is put into a temporary file (need to know the original file extension), then calls the ShellExecute API function to open the can,


Store the file name to a field, in the form of stream file after download, the file name changed to field in the file name, and then use ShellExecute open,,,

CodePudding user response:

Ha ha!
The eldest brother is upstairs!

CodePudding user response:

On the second floor of the true,
  • Related