CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2008
    Posts
    47

    VB program creates report then sends as email

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: VB program creates report then sends as email

    It might help if you post some code, so we don't have to GUESS what you're doing.
    Code:
    ' Always use code tags, also
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured