Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OLE Package How Do You Save Contents?

Status
Not open for further replies.

Robertio

Programmer
Oct 9, 2000
87
GB
Hopefully I'm just being stupid, but I can't find a way of saving a file (in this case a tiff image) out of a package in a TOLEContainer.

If you drop a TOLEContainer on a form, then put a button on which calls
Code:
OleContainer1.CreateObjectFromFile('File Name Of A *.TIF File',false);

then run the program and click on the button the image will be loaded into a package in the container.

You can then right click on the container and select Edit Package. Go to the file menu and Save Contents to save the file back out.

I just want to replicate this in code, but can't seem to get anywhere. The file itself is stored in a database and we have no problems with using Word documents in this way, just seems to be be any kind of file that gets stored in a package that is causing problems.

Any help appreciated.


Thanks

Robertio
Alias: Robbie Calder
Software Developer
urc@walkermartyn.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top