FoxInCloud
Re: PDF file download
What i described was with Chrome....If i use Mozilla it is different. The pdf is opened in an object that has some buttons on the top (for print, zoom, ect) and one for save file......If i click on my button that calls wfilesaveas another window is opened with the same control with the same file shown....
does it work in some browser? I mean desktop compared to ipad ...
I put Set Step on at the beginning of wfileSaveAs and i check the execution of the procedure....
From wFileSaveAs it goes into
AJAX.DownloadFile(m.tcFileSrce, @m.tcResult)
passing the correct pdf name file
Here it goes into
this.FileToSiteTempDir(m.tcFile, @m.tcResult)
and it copies my file in temp folder (one only difference is that the name in temp folder is in lower case and my original file is in upper case)
Then it goes to cScriptJSadd_ passing as parameters
tcScript = FoxInCloud.DownloadFile('Temp/2013BZ000177.PDF');
tlPrePend = .F.
and i can't see what happens in
cScriptJSadd(m.this.cScriptJS_, m.tcScript, m.tlPrepend)
because the source is not available
Michele,
To help you, I need to know what code in .wFileSaveAs() runs or not.
Thanks
No dialgo is opened.
Wfilesavesas return an empty valu
.wFileSaveAs() takes a file from your server to the client browser; it triggers a 'save as ...' dialog on the browser.
1/ What value does .wFileSaveAs() RETURN ?
2/ no assert ?
3/ did you SET STEP ON to see what .wFileSaveAs() does?
I expected that with wfilesaveas i can download the file on the pc (or other device) where i am working on. I do wfilesaveas but nothin happens....where should the files be saved ?
What do you mean?
But i can't find the file on my pc
Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II)