1. Ingmar Thomassen
  2. PowerServer
  3. Tuesday, 10 September 2024 13:43 PM UTC

hi

 

We are running in app on the powerserver

I want to open a PDF file from our network on our tablet. Is that possible. It does not have to be running in the app, just open the PDF with acrobat for instance

I tryed:

ls_filename="\\172.16.10.x:80\x\" + ls_proefcode + ".pdf"

//Open de PDF via Shell
ShellExecute( 0 , "open", ls_filename, ls_Null, ls_Null, 1)

 

But on a tablet it does not work, on ios it works great

 

Someone any suggestion

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 10 September 2024 15:08 PM UTC
  2. PowerServer
  3. # 1

What version of PowerServer?

Comment
There are no comments made yet.
Ingmar Thomassen Accepted Answer Pending Moderation
  1. Wednesday, 11 September 2024 06:26 AM UTC
  2. PowerServer
  3. # 2

o yes sorry

Powerserver : 2020 build 2803

Appeon workspace andraid : version 2703.00

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 11 September 2024 12:36 PM UTC
Hi Ignmar;

Your code example should *not* be using the GetContextService() command. That command was only needed when running under EAServer.

Regards ... Chris
  1. Helpful
  1. Andreas Mykonios
  2. Wednesday, 11 September 2024 12:38 PM UTC
Hi.

Try using file://... instead of \\<some ip>. Try a uri generated like:

ls_filename = "file://172.16.10.2/Sybase/Communicatiefiles/Liveproefplan_PDF/"; + ls_proefcode + ".pdf"

Does it works?

Andreas.
  1. Helpful
  1. Ingmar Thomassen
  2. Wednesday, 25 September 2024 14:05 PM UTC
unfortuanlly it did not work

Is seems that it want to open the file but de tablet will give this error



can not open the file. Check the connection or shorten the filename.



It does not make sence for me. I tryed this now: iinet_base.HyperlinkToURL("file://fs02sh/data/VOK-64.pdf";)



  1. Helpful
There are no comments made yet.
Ingmar Thomassen Accepted Answer Pending Moderation
  1. Wednesday, 11 September 2024 14:13 PM UTC
  2. PowerServer
  3. # 3

hi, we getting there but not yet. It seems that it can acces the file on de server now, but will nog open it.

I get the message : PDF not showned: can not open file xxx.pdf

There is  google drive icon for it. We tryed acrobat, or other PDF readers to install on the tablet but that will nog work

 

I tested the file by putting it on the tablet and that will open.....

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.