Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: problem showing pdf files

$
0
0
Re: problem showing pdf files
FoxInCloud
Re: problem showing pdf files
Mar. 25, 2013
09:14 am
3QV0JSRH5Show this entire thread in new window
Gratar Image based on email address
From:FoxInCloud support
To:Michele
fileCopy = addbs(justpath(file)) + forceext(juststem(file) + sys(2015), justext(file))copyfilefileTO fileCopy thisForm.xxxole.Tag = fileCopy


First of all i need that the file is still in the original folder after the print......It is an attachment to the document.
and the file's name is not random, so every time i print i overwrite the copy already in the folder.....

Please send me the code to mantain the file in the original folder and opy it to the temp renaming it so i have not problem with the browser cache. I can do it but it is better you say the correct code....


moving to the temp folder is normal - it needs be deleted from your source folder otherwise files could accumulate.

The issue is probably due to browser cache.

did you try
file = addbs(justpath(file)) + forceext(juststem(file) + sys(2015), justext(file))


I modified the code, but now the pdf i create is moved or deleted from the original folder to the temp folder and the problem is not solved and also i have no more my original pdf file.....


I don't say that this is the "Solution". I say that that code was the problem.....Commenting that code probably the controls open directly my file and not the copy in the temp folder......But without the copy in temp folder the pdf is shown is always correct.....if i uncomment that code and the file is copied in the temp folder it seems to be cached....or ...i don't know....i don't look at the class code...


Ciao Michele,

Don't understand how commenting this instruction can solve the problem ...

Might be better to keep this instruction and try this patch in awAJAX.FileToSiteTempDir()

Modify command awServer

replace

llResult = File(m.lcFileDest) OR Iif(m.llTemp, FileMove(m.lcFileSrce, m.lcFileDest, .T., @m.tcResult), FileCopy(m.lcFileSrce, m.lcFileDest, @m.tcResult)) && .T. : Forcer la copie pour que le nouveau fichier hérite des autorisations du dossier Temp

by
llResult = FileDelete(m.lcFileDest) AND Iif(m.llTemp; , FileMove(m.lcFileSrce, m.lcFileDest, .T., @m.tcResult); && .T. : Forcer la copie pour que le nouveau fichier hérite des autorisations du dossier Temp , FileCopy(m.lcFileSrce, m.lcFileDest, @m.tcResult); )

thanks!


I have a problem while showing a pdf using the Acrobat control (awolepdfacro). I create a pdf file using Crystal report and i save it a folder...then i set tag property in the control....the pdf is shown......i change something in my document and i create a new pdf file (using the same name for pdf file), but the file shown in the control is still the version before my last changes.....

To solve the problem i comment this call in the tag_assign of the acrobat control

* Copier (ou déplacer s'il est temporaire) le fichier PDF dans le dossier temporaire du site tcPDF = Iif(AJAX.FileToSiteTempDir(@m.tcPDF, @m.lcResult); , m.tcPDF; , m.lcResult; )







Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II)


Viewing all articles
Browse latest Browse all 10393

Trending Articles