Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

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.

[email protected]

SRP Computer Solutions, Inc.


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

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/bbfd261bd472423585256fc400206ea6.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1