Wrox Home  
Search P2P Archive for: Go

  Return to Index  

html_code_clinic thread: Invoke an EXE from HTML doc


Message #1 by "Doug Yoes" <dyoes@3...> on Wed, 12 Sep 2001 21:49:06
Thanks for trying, Keith.  Yeah, I think it'll have to be an activex plugin.
I can't get anything else to work.


-----Original Message-----
From: Keith Pursglove [mailto:keithpursglove@y...]
Sent: Saturday, September 15, 2001 4:36 AM
To: HTML Code Clinic
Subject: [html_code_clinic] Re: Invoke an EXE from HTML doc


Hi

i guess that you can't do automatic printing of a document from a web page,
because of security issues, although you might be able to bring up a print
dialog box.


I tried

<a href="file:///D:\Program Files\Adobe\Acrobat
4.0\Reader\AcroRd32.exe">Load Adobe Acrobat</a><br>
<a href="file:///D:\Program Files\Adobe\Acrobat 4.0\Reader\AcroRd32.exe
myfile.pdf">Load PDF file (in this folder)</a><br>

the first one will load acrobat reader, but it brings up a dialog box first,
and the user has to select run from location

the second one, doesn't work, because it sees 'myfile.pdf' as part of the
filename, so you arn't going to be able to add any switches (like /p) to
make it print anyway.

the only way around this that i can see at the mo, is to download an
activeX, or applet, that can read, and print pdf files.

i guess the applet will prompt the user to accept the print operation, and
the activeX will require that ther users allows it to be downloaded.


--Keith



----- Original Message -----
From: "Doug Yoes" <dyoes@3...>
To: "HTML Code Clinic" <html_code_clinic@p...>
Sent: Friday, September 14, 2001 9:58 PM
Subject: [html_code_clinic] Re: Invoke an EXE from HTML doc


> Yeah, I tried that right off the bat.  Doesn't work.  By simply putting
the
> file (e.g., <a href="myfile.pdf">Print</a>) in there it will pull up
Acrobat
> Reader by file association.  But it will not invoke automatic printing
with
> a /p flag.  I've tried all kinds of combinations.
>
> Any other suggestions???
>
>
> -----Original Message-----
> From: Greg Griffiths [mailto:griffiths@x...]
> Sent: Thursday, September 13, 2001 12:04 PM
> To: HTML Code Clinic
> Subject: [html_code_clinic] Re: Invoke an EXE from HTML doc
>
>
> Have you tried putting into a URL ?
>
> <a href="AcroRd32.exe /p myfile.pdf">Run</a>
>
> At 21:49 12/09/01 +0000, you wrote:
> >Anyone know a way to invoke automatic printing of a PDF from a web page?
I
> >don't want the doc to appear in Acrobat Reader. I just want it to print
to
> >the default printer. Looking at the Acrobat SDK there is a note that you
> >can invoke the following;
> >
> >AcroRd32.exe /p filename
> >- or -
> >AcroRd32.exe /t path printername drivername portname
> >
> >Problem is, how can I invoke an executable from an HTML doc?  Is there a
> >JavaScript that I could include? I believe I could use an ActiveX control
> >for Acrobat, but I'd prefer not to do that because I'd like to support
> >Netscape as well as IE.
> >
> >Thanks!

  Return to Index