[dba-VB] Launch and monitor external programs from .NET

Michael Maddison michael at ddisolutions.com.au
Thu Dec 20 22:23:12 CST 2007


Looking through the comments from
http://www.west-wind.com/WebLog/posts/76293.aspx it appears that 
Response.TransmitFile( Server.MapPath("~/images/sailbig.jpg") );
will fail in some circumstances...  one of the many reasons I prefer
working with desktop apps.

good luck!

Michael M

From: dba-vb-bounces at databaseadvisors.com
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson
Sent: Friday, 21 December 2007 1:57 PM
To: dba-vb at databaseadvisors.com
Subject: Re: [dba-VB] Launch and monitor external programs from .NET

Michael,

I looked at the two links.  The first got me in the right direction but
didn't provide a direct solution.  The second one was an addon for
Firefox which most of the users don't have.

However, I have found a couple of links that might solve the problem:

http://www.west-wind.com/WebLog/posts/76293.aspx

http://aspalliance.com/259_Downloading_Files__Forcing_the_File_Download_
Dialog

David



At 21/12/2007, you wrote:
>Hi David,
>
>I guess the links I sent you didn't do the job then...
>
>How about 2 links on the page, 1 to the pdf that will open it in the 
>browser.
>The other to a zip of the pdf that can be downloaded.
>
>Too simple?  ;-)
>
>cheers
>
>Michael M
>
>-----Original Message-----
>From: dba-vb-bounces at databaseadvisors.com
>[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of David Emerson
>Sent: Friday, 21 December 2007 1:27 PM
>To: dba-vb at databaseadvisors.com
>Subject: Re: [dba-VB] Launch and monitor external programs from .NET
>
>Group,
>
>I couldn't work out how this could be done so I am trying the group 
>again.
>
>I am using VB.net in Visual Studio 2005.  This is a web application.  I

>have code that gets the path and name of a pdf file located on a
server.
>What I want to do within the code is have a file download box open 
>which gives the user an option of opening or saving the PDF file.
>
>The Process class doesn't deem to help because it tries to open the 
>file on the web server (and not the user's).
>
>My.Computer.Network.DownloadFile Method seems to require a destination 
>path and filename, but I don't want it to automatically be saved.
>
>
>Regards
>
>David Emerson
>Dalyn Software Ltd
>Wellington, New Zealand
>
>_______________________________________________
>dba-VB mailing list
>dba-VB at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/dba-vb
>http://www.databaseadvisors.com
>
>
>_______________________________________________
>dba-VB mailing list
>dba-VB at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/dba-vb
>http://www.databaseadvisors.com

_______________________________________________
dba-VB mailing list
dba-VB at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-vb
http://www.databaseadvisors.com





More information about the dba-VB mailing list