Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
* First, use ShellExecute() to launch the PDF in the user's default viewer.
* I assume you already know how to do this.
* Instantiate Windows Scripting Host
owsh = CREATEOBJECT("wscript.shell")
* Switch to the PDF viewer
owsh.AppActivate("My Document")
&& Substitute the name of the PDF file (as it appears in the viewer's title bar)
owsh.SendKeys(< keystrokes here >)
oWSH.SendKeys("{RIGHT}{RIGHT}{RIGHT}")
"…Foxit Reader.exe" "C:test.pdf" /A page=5
RUN /N "…Foxit Reader.exe" "C:test.pdf" /A page=5
lcPDFFilename = alltrim(query.pdf)
lcSeite = Alltrim(Str(Seite))
RUN /N "...Foxitppdfreader.exe" "&lcPDFFilename" /A page=&lcSeite
myself said:The file name, for example, should be within quotes even after the macro substitution, so the quotes around the filename must be part of the expression:
Klaus said:My fault was that I did not use the page-no as part of a string
nPage = 3
Select * from book WHERE page=nPage
nPage = 3
RUN /N "…Foxitpdfreader.exe" "EURAMS_2410_LR.PDF" /A page=nPage