Hi there,
I would like to create a button that could open up a PDF file.
I create a button and set the Connection Type as "Runprocess" to run the following code:
C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe http://www.asccp.org/portals/9/docs/algorithms%207.30.13.pdf
It opens up the Adobe Read and load a PDF file from the link.
The error message:
There was an error opening this document. The specific path is invalid.
Thanks for any input!
Simon
Check out this thread for a nice function to do that:
https://centricityusers.com/forum/insert-an-information-box-into-vfe-form/
And here is code I have in a button to open a PDF to a particular page
{
RUNSHELLOPEN("AcroRd32.exe","/A page=4\ \\\servername\WORKSTA\Illustrations\MCHAT\M-CHATInterview.pdf")
}
I don't know if Adobe will read a file from a website.
Try "C:\Program Files\Internet Explorer\iexplore.exe" http://www.asccp.org/portals/9/docs/algorithms%207.30.13.pdf
Note that the quotes are specifically placed.
If you don't want IE to pop up, you might need to write a batch file that downloads the file, then calls Adobe reader like are trying to do.
Something like this might work (have to find wget for Windows or a similar app):
@echo off
wget http://www.asccp.org/portals/9/docs/algorithms%207.30.13.pdf -P C:\temp\temp.pdf
call "C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe C:\temp\temp.pdf"
Hi there,
I tried your code and I received the same error message.
{ RUNSHELLOPEN("AcroRd32.exe","/A page=4\ \\\
http://www.asccp.org/portals/9/docs/algorithms%207.30.13.pdf)
}
I downloaded the pdf file and placed it on our server. I can open it up with both of our codes.
I don't know why I am not able to open up a pdf document through a hyperlink.
Thanks
Simon
Hi guys,
I put the following on the Runprocess text box and it works
C:\Program Files\Internet Explorer\iexplore.exe "http://www.asccp.org/portals/9/docs/algorithms%207.30.13.pdf"
Thank you for all of your helps
Simon