Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

opening DOS applications

Status
Not open for further replies.

simran1

Programmer
Apr 23, 2002
82
US
Hi,

Code:
Dim objWord As New Word.Application
objWord.Documents.Open Filename
objWord.Visible = True
i use this code to open a document in word from my VB application. How do i open tthis file in read only mode, so that the user cannot make any changes to the word document.

Another, question would be, how to open a .tif file. What default do i have to use.

I appreciate the time taken to help me.


 
[tt]
Dim objWord As New Word.Application
objWord.Documents.Open FileName, , True
objWord.Visible = True
[/tt]

It depends on how you want to open the tif. Do you want to use the default viewer or your program. You can use the Wang/Kodak ImageEdit control to view (and edit if you want) tiff files.
 
hi,
I want to use default and later i want to use Kodak Image edit.
 

Then you could use shell, or the API's shellexecute or shellexecuteex.

Search this site for the API names above to find out how to use them, there are many examples.
 
Hi,

Is this the only way to open tiff files.
Is there not a way, where i can declare an object and open the tiff file, like oeping word or excel files.

 

Look on your machine and see if you have any references to graphical controls or applications that handle tiff files. There are many 3rd party controls and objects that you could use for tiff files (some are very expensive).

Sorry I can't help you further I have always used the wang/kodak imaging controls, lead tools, and the scansoft tools for my tiff needs.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top