LucieLastic
Programmer
hi all
I have an app which users can drag and drop different file types in to (eg .xls, .doc, .txt, .pdf, .htm etc). I'd like to be able to view the file in a form where the user can accept or reject the file before continuing.
This works for .xls and .doc files but not .txt and .htm. These are the only 4 types I've tried so far.
FormViewMaterialFile.OLEContainer.CreateObjectFromFile(Materialfilename, False);
FormViewMaterialFile.OLEContainer.Run;
if FormViewMaterialFile.ShowModal = MRCancel then EXIT;
Would it work if I use ShellExecute and set the parent to my form? off to try it...
Many thanks for help
lou
www.radbmx.co.uk
I have an app which users can drag and drop different file types in to (eg .xls, .doc, .txt, .pdf, .htm etc). I'd like to be able to view the file in a form where the user can accept or reject the file before continuing.
This works for .xls and .doc files but not .txt and .htm. These are the only 4 types I've tried so far.
FormViewMaterialFile.OLEContainer.CreateObjectFromFile(Materialfilename, False);
FormViewMaterialFile.OLEContainer.Run;
if FormViewMaterialFile.ShowModal = MRCancel then EXIT;
Would it work if I use ShellExecute and set the parent to my form? off to try it...
Many thanks for help
lou
www.radbmx.co.uk