Open different file types programmatically from VB.NET app

B

Bill Nguyen

I need to detect and open PDF (acrobat reader or Adobe Acrobat), TIFF (MODI
or Windows Picture and Fax Viewer) and some other document typ from within a
VB.NET app at runtime.
What commands/syntax sould I use?
Thanks

Bill
 
H

Herfried K. Wagner [MVP]

Bill Nguyen said:
I need to detect and open PDF (acrobat reader or Adobe Acrobat), TIFF (MODI
or Windows Picture and Fax Viewer) and some other document typ from within
a VB.NET app at runtime.
What commands/syntax sould I use?


Opening files, applications, Web documents, and the mail client
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=openfileappwebpage&lang=en>

Determining a file's associated application
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=findassociatedapp&lang=en>
 
B

Bill Nguyen

Herfried;

The links are wonderful.
Now that I can open the files, can I also print the file directly to a
printer (instead of open then print)?

Thanks

Bill
 
B

Bill Nguyen

Herfried;

This will work for me. However, I would like to know if it's possible to
select printer from within psi and also some error handling tricks.

Thanks again

Bill
 
H

Herfried K. Wagner [MVP]

Bill Nguyen said:
This will work for me. However, I would like to know if it's possible to
select printer from within psi and also some error handling tricks.

I feel sorry, but this is not supported. You would have to change the
system's default printer prior to printing.
 
B

Bill nguyen

Herfried;

Thanks for the info.

Bill

Herfried K. Wagner said:
I feel sorry, but this is not supported. You would have to change the
system's default printer prior to printing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top