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
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
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