Hi,

I have a VB 6.0 program, which monitors a table for some kind of reports,
if a request pending, it invokes a php resource in the same machine, using webbrowser control.
the php code generates the report in pdf format, and saves to the local disk.

Again the VB code the sends the report as attachment to the requester using CDSYS class.

my code first generates the report and then call the email sending procedure -
but error comes as "the specified file not found".

(The VB program first cleares the report folder before doing anything).
If I omit this clause, then program sends previously generated report (that's why this clearing)
not the current report as attachment.

How to solve this problem?