Seth Galitzer
sgsax at ksu.edu
Thu Dec 4 09:44:48 CST 2003
Eric, See this page for reference: http://www.pietschsoft.com/programming/vbapi/ref/s/shellexecute.html "ShellExecute opens, prints, or executes a file using the Windows shell. When working with a non-executable file, the file is opened using its associated program. ShellExecute can also open Windows Explorer windows." So just pass it the full path and name of the file you want to view, Windows will take care of the rest (provided .tif files are associated with the image/fax viewer, otherwise, it will open whatever app is associated with those files). Seth On Thu, 2003-12-04 at 09:31, Eric Barro wrote: > Seth, > > Thanks for the quick response. Will this work if the app is a DLL? This is the built-in app -- shimgvw.dll used in XP to handle images. > > --- > Eric Barro > Senior Systems Analyst > Advanced Field Services > (208) 772-7060 > http://www.afsweb.com > > -----Original Message----- > From: dba-vb-bounces at databaseadvisors.com > [mailto:dba-vb-bounces at databaseadvisors.com]On Behalf Of Seth Galitzer > Sent: Thursday, December 04, 2003 7:23 AM > To: ebarro at afsweb.com; dba-vb at databaseadvisors.com > Subject: Re: [dba-VB] Picture and Fax Viewer > > > Eric, > > If you know the name of the executable, you could just use > ShellExecute(). > > Seth > > On Thu, 2003-12-04 at 09:03, Eric Barro wrote: > > Does anyone have code that calls the Windows Picture and Fax Viewer from VB to display a TIFF image? > > > > --- > > Eric Barro > > Senior Systems Analyst > > Advanced Field Services > > (208) 772-7060 > > http://www.afsweb.com > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 > > -- Seth Galitzer sgsax at ksu.edu Computing Specialist http://puma.agron.ksu.edu/~sgsax Dept. of Plant Pathology Kansas State University