[dba-VB] Launch and monitor external programs from .NET (was: Open PDF file)

David Emerson newsgrps at dalyn.co.nz
Thu Dec 6 03:28:00 CST 2007


Michael,

The first link looks promising - see my reply to Gustav.

David

At 6/12/2007, you wrote:
>Is this what you are looking for?
>
>http://www.useit.com/alertbox/open_new_windows.html
>or perhaps
>https://addons.mozilla.org/en-US/firefox/addon/636
>
>I'm not 100% sure but I think the code you have can only be used on the
>server.
>
>cheers
>
>
>Michael M
>
>Subject: Re: [dba-VB] Launch and monitor external programs from .NET
>(was: Open PDF file)
>
>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
>
>At 27/11/2007, you wrote:
> >Hi David et al
> >
> >A lot of useful things can be done with the Process class.
> >Some examples here:
> >
> >   http://www.thescarms.com/dotnet/Process.aspx
> >
> >/gustav
> >
> > >>> newsgrps at dalyn.co.nz 26-11-2007 06:14 >>>
> >I am using VS 2005 and VB.Net for a web site.
> >
> >I have a number of PDF files that are stored in a static folder on the
>server.
> >
> >Users select from a list on files on a web page and I want to open the
> >files in Adobe.  Adobe reader is installed on the server.
> >
> >Can anyone give me a pointer to how I can take a string with path and
> >file name, and open it?
> >
> >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