Atozed Forums
Showing pdf files in android or ios - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Showing pdf files in android or ios (/thread-2872.html)



Showing pdf files in android or ios - softdev85 - 09-24-2022

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 Confusedtring;
  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;


RE: Showing pdf files in android or ios - Alexandre Machado - 10-17-2022

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