Hi Kelvin
Thanks you advise. But I still can not make it, would you mind to provide some example to follow!
What I current working on.
I create a NetWebPage procedure, the the "process code" embed point, I put the following code :
Glo:PrintfileName = 'C:\TEMP\FILECOVERRPT.PDF'
Loc:PrintFileName = CLIP(Glo:PrintfileName)
Loc:RefNo = p_web.GetSessionValue('CLT:RefNo')
Glo:FRBFilter = 'CLT:RefNo = ' & Loc:RefNo
CLT:RefNo = Loc:RefNo
IF NOT ACCESS:CLIENT.FETCH(CLT:RefNo_key)
FIL:CODE = CLT:FileType
IF NOT ACCESS:FILETYPE.FETCH(FIL:KFIL_CODE)
IF FIL:FileCoverName <> ''
CLEAR(FRB::ReportSearchPath)
FRB::ReportFileName = CLIP(FIL:FileCoverName)
FRB::ReportEditAction = FALSE
START(FileCover,25000)
END
END
END
After running the above code, a blank page is display on the browse. It is because the "FileCover" procedure is still running. The report does not create at the moment. My "FileCover" procedure is using FominTools report builder (FRB) to build the report and use WpdfControl to make the PDF file.
After close the blank page, the report will make and in the temp directory.
I don't know how to make the report make first and then call the NetWebPage procedure to display the pdf file. I try different method and can not figure out.
Regards
Terry Ho