Thanks Bruce
Previously with SVPDF I used this code just after open files (the double rem is the variable I used for SVPDF single rem for PDFTools)
! Open Files
Relate:Policy.Open ! File Policy used by this procedure, so make sure it's RelationManager is open
SELF.FilesOpened = True
! [Priority 7501]
ReportHeader = 'CLIENT INFORMATION'
! [Priority 7501]
!! PDFReportName = 'PolicyWelcome\' & CLIP(POL:PolicyNo) & '\' & CLIP(POL:PolicyNo) & '_1.pdf'
!! IF EXISTS(PDFReportName)
!! REMOVE(PDFReportName)
!! END
! loc:PDFName = 'PolicyWelcome\' & CLIP(POL:PolicyNo) & '\' & CLIP(POL:PolicyNo) & '_1.pdf'
! IF EXISTS(loc:PDFName)
! REMOVE(loc:PDFName)
! END
! Open the window
SELF.Open(ProgressWindow)
Following your advice I found this code which it appears would run after the above code so I understand why my variable assignment would be overwritten
If Not p_Web &= NULL
ProgressWindow{prop:hide} = 1
loc:ProgressName = p_web.GetValue('_ProgressName_')
p_web.SetProgress(loc:ProgressName,1,'') ! report has started
loc:URL = '\reports\$$$' & format(random(1,99999),@n05) &'.pdf'
loc:PDFName = clip(p_web.site.WebFolderPath) & loc:URL
! Start of "Prime Report Options when run in Web mode"
! [Priority 5000]
So in priority 5000 I embedded
POL:PolicyID = p_web.GSV('POL:PolicyID')
loc:URL = '\reports\' & CLIP(POL:PolicyID) & '_1.pdf'
loc:PDFName = clip(p_web.site.WebFolderPath) & loc:URL
p_web._trace('loc:PDFName ' & CLIP(loc:PdfName))
IF EXISTS(loc:PDFName) !so if the report was generated before I can substitute with the later file
REMOVE(loc:PDFName)
END
When I run the report I see the progress flash on the screen and then because I have cutepdf as my default printer I get the save file screen from cutePDF.
No file is saved in the report folder. I monitored the report folder and no file was created then deleted.
The trace I placed in the above code does not display in DebugView++
I have (<NetWebServerWorker p_web>) as my prototype
Thoughts?