473,324 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Open different file types programmatically from VB.NET app

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
Dec 8 '05 #1
6 8021
"Bill Nguyen" <bi*****************@jaco.com> schrieb:
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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 8 '05 #2
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 K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Oj**************@TK2MSFTNGP09.phx.gbl...
"Bill Nguyen" <bi*****************@jaco.com> schrieb:
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>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 10 '05 #3
"Bill Nguyen" <bi*****************@jaco.com> schrieb:
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)?


Printing files of various types without user interaction
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=printinganyfile&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Dec 10 '05 #4
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

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
"Bill Nguyen" <bi*****************@jaco.com> schrieb:
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)?


Printing files of various types without user interaction
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=printinganyfile&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 13 '05 #5
"Bill Nguyen" <bi*****************@jaco.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 13 '05 #6
Herfried;

Thanks for the info.

Bill

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OV**************@TK2MSFTNGP11.phx.gbl...
"Bill Nguyen" <bi*****************@jaco.com> schrieb:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 13 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Daniel | last post by:
Hello I am developing a Java application for MacOS X, Windows and Linux. So far easy with Java. But when it comes to file types, the platfrom-specific handling knocks my application-created...
2
by: Jonathan Trevor | last post by:
Hi, For the last couple of releases of a product we're developing we've been running to very wierd behavior from IE and our ASP.NET web application which serves up various types of files and I'm...
6
by: Syvman | last post by:
Here's what I've got: I'm trying to grab some data out of an Excel spreadsheet and bring it into Access. I'm able to do it, but only if the Excel spreadsheet is not opened by any other users. I...
22
by: fniles | last post by:
I have a .CSV file (comma delimited) that I want to open using OLEDB, but I get the error "External table is not in the expected format." If I save the .CSV file to an .XLS file, I can open the...
13
by: anil.rita | last post by:
When the user chooses an AV file to play, based upon the type of file, I want to use the default installed media player to play it. I am wondering if this is a good way - any alternatives,...
1
by: Bill Nguyen | last post by:
I would like to open for view only or editing different file types in VB.NEt. For example: PDF BMP JPEG GIF DOC etc...
7
by: WTH | last post by:
I am now aware (I am primarily a C++ developer) that in C# if you reference the same interface from the same file in two different projects the types are actually incompatible. I found this out...
13
by: jim | last post by:
Is there a way (using VB.Net or C#) to copy open or locked files? Thanks! jim
2
by: AY Xu | last post by:
I have a data grid view, list the files saved in SQL server. File type may different in different rows. I want to achieve: doule click one row in data grid view, a standard program be called to...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.