Open different file types programmatically from VB.NET app

  • Thread starter Thread starter Bill Nguyen
  • Start date Start date
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
 
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>
 
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
 
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
 
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.
 
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.
 
Back
Top