05-06-2019, 09:02 PM
Hi,
When I use the next code with ModalWindow to download a pdf I am getting the next message in chrome console.
The PDF is downloaded but I get the warning.
Is there a way to avoid it?
Regards, Luiz
When I use the next code with ModalWindow to download a pdf I am getting the next message in chrome console.
The PDF is downloaded but I get the warning.
Is there a way to avoid it?
Code:
IWBase__ED463BD0B.js:4 Resource interpreted as Document but transferred with MIME type application/pdf
Code:
with IWModalWindow1 do begin
Reset;
Autosize := False;
Title := 'Bulário';
Draggable := False;
WindowWidth := 95;
WindowHeight := 95;
Src := 'http://mysite/document.pdf';
OnAsyncClick := nil;
Show;
end;
Regards, Luiz