Databases and OLE File Linking
Posted on 1997-09-03
I am writing a Database application using Delphi 2. The user wants (for each record) to be able to include a MS Word document (possibly more than one) and maybe a graphic file (bitmap), again, possibly more than one.
I don't want to embed them in each record, I want to save a link to each file. I first thought of the OLEContainer, but this thing can only hold one object at any one time. I could just save the path and filename of the proposed file(s) in each record, but how could I execute the application (eg. Word) when the user wants to edit the file.
I'd like to use the InsertOLEObject Dialog box, so the user can insert an object (of their choice) at any time.
How, and what would be the best way to do this?