PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → [WB 19]Multiple FileDisplay from one button
[WB 19]Multiple FileDisplay from one button
Started by Ericus, Apr., 23 2018 11:26 AM - No answer
Posted on April, 23 2018 - 11:26 AM
Good day

I have a button on a page where I want the user to download TeamviewerQS as well as display another PDF file explaining to the user the conditions of use.

I try this:

File is string
File = "TeamviewerQS.exe"
FileDisplay(fWebDir+["\"]+File,"application/unknown",File)
File = "Plum Accounging TeamViewer Use.pdf"
FileDisplay(fWebDir + ["\"] +File, "application/pdf")

The EXE is downloaded but the PDF file is not displayed. The new window displaying the PDF is opened quickly and closed automatically.

I think it is because the 'focus' is probably moved form the page being displayed to the file being downloaded. I don't want to use PAGE_Refresh in between the 2 downloads because the user might be busy capturing data in the page and that data will be lost, or will it?

Thanks in advance.



Ericus Steyn