Viewing images using RUNWIN routine (OpenInsight 32-Bit)
At 14 MAR 2005 01:54:14AM Chris Meyer wrote:
I am trying to open different image files from within OI.
No problem with .DOC .PDF .Xls files but when opening .JPG .TIF file I get different results depending on the work station.
I thought that if windows was set to open with the particular file extention then OI would do the same.
The windows program that opens the image file (from within explorer) is "Windows Picture and Fax Viewer". I dont seem to be able to find where this program resides on XP windows system?
I also tried forcing the opening of explorer.exe and this worked on 2 work stations. One of the work stations insists on opening a .TIF file using Corel Paint but when I uses explorer it opens up with Windows picture viewer???
The OI function Iam using is
Mode=3
rv=Utility("RUNWIN", 'c:\sample.JPG', mode)
Using OI 7.01 and windows XP
Any help would be appreciated.
Regards
Chris
At 14 MAR 2005 03:26AM Donald Bakke wrote:
Chris,
If you want to execute a file based on the file type then ShellExecute is your best option. The RUNWIN service is a wrapper around WinExec…which is really there for 16-bit compatability.
At 14 MAR 2005 11:07AM Pascal Landry wrote:
You could also use some OLE functions to view files.
Create a form and plop an OLE control into it and give it the property of Preview.Preview if using Windowx XP.
Then you can use Send_message(control,'Show',path_and_file.jpg)
Pascal