MontyBurns
Programmer
Hi,
I have the following code in an HTML page to open a pdf externally to the browser. I need to do this to enable global searching of the document collection. If I specify a local file on my hard drive, it works perfectly, but if I use Acrobat complains of an Internal Error on trying to open the doc:
<html>
<head>
<title>Testing Opening PDF Docs externally to the Browser</title>
<script language="vbscript">
function ExternalPDF(location)
Set WShell = CreateObject("WScript.Shell"
WShell.Run "C:\progra~1\adobe\acroba~1\reader\acrord32.exe " & location
End function
</script>
<head>
<body>
<span
style="color: blue; font-size: 10px; text-decoration: underline; font-
family: verdana; cursor: hand"
onClick="ExternalPDF('c:\test.pdf')">
Click here
</span>
</body>
</html>
I realise this is outside the scope of a vbscript list, but hope that someone in the list can help all the same.
Any pointers would be very welcome,
Burns
I have the following code in an HTML page to open a pdf externally to the browser. I need to do this to enable global searching of the document collection. If I specify a local file on my hard drive, it works perfectly, but if I use Acrobat complains of an Internal Error on trying to open the doc:
<html>
<head>
<title>Testing Opening PDF Docs externally to the Browser</title>
<script language="vbscript">
function ExternalPDF(location)
Set WShell = CreateObject("WScript.Shell"
WShell.Run "C:\progra~1\adobe\acroba~1\reader\acrord32.exe " & location
End function
</script>
<head>
<body>
<span
style="color: blue; font-size: 10px; text-decoration: underline; font-
family: verdana; cursor: hand"
onClick="ExternalPDF('c:\test.pdf')">
Click here
</span>
</body>
</html>
I realise this is outside the scope of a vbscript list, but hope that someone in the list can help all the same.
Any pointers would be very welcome,
Burns