Showing pdf files in android or ios

<< Click to Display Table of Contents >>

Navigation:  Forum >

Showing pdf files in android or ios

Forum link

 


 

09-24-2022, 09:11 AM:

 

hello,

 

i have intraweb application that show pdf files,

 

when i use on windows navigator no problem

 

but when i use on mobile phone or tablette , android or apple i have code 404 file not found

 

have you any explaination ?

 

best regards

 

my code:

 

procedure TFormToto.Prog1;

 

Var

 

  rep tring;

 

  fichier : string;

 

  HRef: string;

 

 

 

begin

 

    rep := 'Toto\';

 

    fichier := 'toto.pdf';

 

    FPath := TIWAppInfo.GetAppPath + 'Toto\' + rep + fichier;

 

    HRef := TIWAppCache.AddFileToCache(WebApplication, FPath, MIME_PDF);

 

 

 

      with IWModalWindow1 do begin

 

        Reset;

 

        Autosize := False;

 

        Title := 'life of toto ' + Mois;

 

        Draggable := False;

 

        WindowWidth := 95;

 

        WindowHeight := 95;

 

       Src := HRef;

 

        OnAsyncClick := nil;

 

        Show;

 

      end;

 

     

 

end;

 


 

10-17-2022, 08:08 AM:

 

I'll need to test this code of yours in a mobile browser to see why it is failing...