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))
by
llResult = FileDelete(m.lcFileDest) AND Iif(m.llTemp;
, FileMove(m.lcFileSrce, m.lcFileDest, .T., @m.tcResult);
, 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
tcPDF = Iif(AJAX.FileToSiteTempDir(@m.tcPDF, @m.lcResult);
, m.tcPDF;
, m.lcResult;
)