Hi Thierry,
I used the new parameter in the following command and my file is always deleted.
Mform.wFileSaveAs(Mdocpdf, "", .F., .T.)
Ouch ...
Please update as follows:
modify command awServer.prg
…
PROCEDURE FileToSiteTempDir
…
lcFileSrce = cFileCased(m.tcFile, .T.)
lnSecs = Datetime() - Fdate(m.lcFileSrce, 1)
llTemp = lTrue(m.tlTemp) or m.lnSecs < 2 && {fr} secondes && {fr} fichier temporaire ... && 2020-10-16 thn -- {FiC V 2.31.0-beta.6} {en} modified
lcFileDest = ForcePath(ForceExt(JustStem(m.lcFileSrce);
+ Iif(m.llTemp and wlSession(@m.oSession), '_' + m.oSession.oData.sessionID + '_' + cY_M_D_H_M_S(Datetime()), ''); && 2019-05-14 thn -- {FiC V 2.28.1-beta.8} {en} added user's sessionID
, JustExt(m.lcFileSrce));
, m.this.cTempPathPhysical)
llTemp = m.llTemp and !lTrue(m.tlFileKeep) && 2020-10-16 thn -- {FiC V 2.31.0-beta.6} {en} modified
… and use .T.
as 3rd parameter: .wFileSaveAs(Mdocpdf, "", .T., .T.)
OK Thierry, thanks
Hi Thierry,
Old topic, same subject.
I think you have not integrated the proposed code in your message, my PDF being again systematically deleted.
I think you have not integrated the proposed code in your message
You can simply check by yourself in awServer.prg
For me it's OK
I had searched with the comment line ...
With .FileSaveAs (MyPdf, "", .T., .T.)
The file is deleted
do you have a session open for this user?
Yes, always (it's in "Suite")
Can you reproduce the issue?
Yes, systematically. I'll try to send you an example