Page 2 of 2

Re: PDF not automatically opening

Posted: Mon Feb 21, 2022 5:28 pm
by Scott Klement
sunny wrote: Mon Feb 21, 2022 5:15 pmAs I said in the first of this question, it works fine on green screen so there has to be something about your product that blocks it from working and I am not wanting to go to 1000 pcs and install new software to make it work. I don't see a straight forward reason it just stops working because it is being called through Genie/Atrium.
No, there's nothing that blocks it.

Re: PDF not automatically opening

Posted: Mon Mar 07, 2022 1:32 pm
by sunny
Anyone who was following this thread. The answer I received from support is that Genie only supports STRPCCMD if you use PC Command Listener or the PC Command Launcher which are programs which must be added to each user's pc.

So, it will not work as it does in 5250 unless you add new software to every PC that will be using the programs that are going to call the STRPCCMD.

Re: PDF not automatically opening

Posted: Mon Mar 07, 2022 5:05 pm
by Scott Klement
There are other options aside from the listener or the launcher -- but, yes... It can't run a command directly on the PC. If a web page could do that, any web page anywhere on the Internet could run commands on your PC. That'd be very bad from a security perspective.

That's the reason the command listener and launcher exist -- in order to provide a way to run commands, since the browser can't do it.

Re: PDF not automatically opening

Posted: Tue Aug 02, 2022 7:05 am
by sophiaabigail
Right-click the PDF, choose Open With > Choose default program or another app in. 2. Choose Adobe Acrobat Reader DC or Adobe Acrobat DC in the list of programs, and then do one of the following: (Windows 10) Select 192.168.l.254 Always use this app to open .Scroll down and select "PDF documents," then switch it to "On." PDF files will download in Chrome just like any other file. You can select the downloaded file at the bottom of the window, then choose "Open," which will open the file in a separate Reader window. Select the "Always open files of this type" option.At the top right, click More Settings. At the bottom, click Show advanced settings. Under “Privacy”, click Content settings. Under “PDF Documents," check the box next to "Open PDF files in the default PDF viewer application.” (Uncheck this box if you want PDFs to open automatically when you click them.

Re: PDF not automatically opening

Posted: Wed Aug 03, 2022 11:57 am
by jfvonjr
We also open PDFs from our web sites. To accomplish this we use an onclick event for a page button or hyperlink. When the onclick event is fired a javascript function is called and looks like the following code ( shown below ). The PDF, if it exists is opened and displayed in a separate browser tab or window. As you have the IFS path value in a filed on your display file then it should be easy to accomplish what you're desiring.

var popup = window.open( "/path_to_document/document.pdf", "_blank" );