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

David Emerson newsgrps at dalyn.co.nz
Thu Dec 6 12:55:57 CST 2007


Thanks Robert.  This looks like it open the pdf in a browser 
window.  Am I correct?  I am wanting the box to appear giving the 
user the option of opening it or saving the file.

David

At 7/12/2007, you wrote:
>David,
>
>Here is what I use:
>
><asp:HyperLink ID="HyperLink1"
>         runat="server"
>         NavigateUrl="Documents/Interest_Skills_Survey.PDF"
>         Text="Interest and skills assesment survey."
>         Target="_blank">
>         Interest and skills assesment survey.
></asp:HyperLink>
>
>As far as I know, Adobe Reader is not installed on the server.
>
>Robert
>
>At 12:00 PM 12/6/2007, you wrote:
>>Date: Thu, 06 Dec 2007 13:48:36 +1300
>>From: David Emerson <newsgrps at dalyn.co.nz>
>>Subject: Re: [dba-VB] Launch and monitor external programs from .NET
>>         (was: Open PDF file)
>>To: dba-vb at databaseadvisors.com
>>Message-ID:
>>         <20071206004538.RHEB9910.fep05.xtra.co.nz at Dalyn.dalyn.co.nz>
>>Content-Type: text/plain; charset="us-ascii"; format=flowed
>>
>>I included Gustav's code in my web application as below:
>>
>>Dim runPdf As New System.Diagnostics.Process
>>runPdf.StartInfo.FileName = HttpContext.Current.Server.MapPath("") +
>>"\PDFFiles\" + strReportFile + ".pdf"
>>runPdf.StartInfo.WindowStyle = ProcessWindowStyle.Normal
>>runPdf.Start()
>>
>>However, when it is run by a user I get the following error: No
>>application is associated with the specified file for this
>>operation.  It seems to be wanting to open the file on the server.
>>
>>Do I need to install Adobe Acrobat on the server?  I would have
>>thought that it would use the local machines copy.
>>
>>David




More information about the dba-VB mailing list