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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

add a viewer in my vb6 application 1

Status
Not open for further replies.

IrinaK

Programmer
May 21, 2001
33
US
I need to add a viewer in my vb6 application that opens a multipage tiff file. I would like to use MODI and it's functionality (i.e. zoom, etc.).
Please help!

Thank you very much.

 
we use LEAD tools for our viewer: it lets you use a multitude of tiletypes and has all the functionality you would need.

not sure if its the best out there but its functional

CBlair
Crystal, InstallShield, branching out in other programming realms.
 
I know how to open MODI:
Shell "C:\Program Files\Common Files\Microsoft Shared\MODI\11.0\MSPVIEW.exe", vbNormalFocus

But how to tell this application which image to open?

Please help!!!!!!!!
Thank you!!!!
 

Have you tried:
Shell "C:\Program Files\Common Files\Microsoft Shared\MODI\11.0\MSPVIEW.exe [blue]C:\Temp\SomeFile.tiff[/blue]", vbNormalFocus

Have fun.

---- Andy
 
Thank you, but I get an error message "check file name or permission".
My file is multi page tiff file.
Do I need to add any properties?
 

I believe Shell is a function that returns a value as Long, so first try something simple like:
[tt]
Dim L As long

L = Shell(NOTEPAD.EXE C:\SomeTextFile.txt, vbNormalFocus)[/tt]


Have fun.

---- Andy
 
I can open text file, but still can't open any tiff file, even if it is not multipage.

I still need help,

thanks.
 
Thank you Andy!
Everything works fine.
Mine mistake.
Thanks again and I voted for your help!
 

Thank you IrinaK, but I would listen to strongm and try his suggestion (he knows what he is talking about).

Unless, of course, you are happy with what you have now.

Have fun.

---- Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top