Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Emailing PDF sometimes fails

edited October 2007 in General
Version 10.07

It appears the the resulting attachment file is not fully written.

Without any changes to the program and upgrading to this version, this problem appeared.

Any chance it was addressed in build 2?

Thanks very much.

John

Comments

  • edited October 2007
    Hi John,

    I'm a bit unclear about the details of this issue. Is the PDF attachment to
    the email ever fully created? Does this issue occur when exporting without
    the email feature? Which email plugin are you using? Have you tried the
    email demo located in the \RBuilder\Demos\1. Reports\... directory? If
    possible, please send a small example demonstrating the issue to
    support@digital-metaphors.com in .zip format and I'll take a look at it for
    you.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited October 2007
    Thanks Nico.

    No, the PDF is never fully created. It appears as an attachment, but when the user clicks to send
    email, Thunderbird complains about checking the temp directory....When I check that directory, the file
    is not there.

    The strange thing is that its not for every report, nor for every customer record...The reports are
    created and emailed just fine for some records, for some, they are never created. It appears to have
    nothing to do with the size of the report, as some very large customer reports are created and attach
    fine, while other customer records accessing the same report will not create the PDF attachment.

    Also, this appeared only after upgrading to 10.07. I'm using POP.

    Thanks very much. I'll take a look at the application, but so far, I just can't see anything that I've
    changed. Sorry I can't provide more detailed info.

    John

  • edited October 2007
    Hi John!

    I have found similar strange thing occuring with thunderbird or netscape
    messenger, using standard MAPI SendMail. Actually the problem was, that
    mailer returned handler sooner than email was created so the resolution was
    to copy files to some temp folder and leave them there until our application
    was restarted. Fortunatelly 99% of our customers use Microsoft mailers
    (Outlook& Outlook Express) where we don't experience this behaviour. Hope
    You can make some workaround like saving files to some folder then create
    mail...

    Best regards,
    Goran

  • edited October 2007
    Hi John,

    One thing you might try is setting the TppEmailSettings.DeleteFile property
    to False. If the email client does not actually create a copy of the
    attachment before it is sent, the file could be getting deleted by
    ReportBuilder before the send button is pressed. I believe Outlook creates
    a copy once the file is attached to the message.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited May 2008
    Nico,

    Sorry, just haven't had the time to pursue this in several months.

    The first time the PDF is created, (application started for the first time) all works fine. Subsequent attempts,
    Thunderbird reports that the file cannot be opened even with the setting you've suggested set to false.

    Thanks so much for your help!

    John
  • edited June 2008
    Hi John,

    I created a virtual machine and installed the latest version of
    ReportBuilder and Thunderbird to test. I was then able to successfully send
    multiple emails from the preview window without getting an error. Are you
    sending these emails from the preview? Any other information on how I can
    recreate this issue here would be very helpful.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2008
    Nico,

    Thanks for investing the time to pursue this. Yes, I am sending the emails from the report preview.

    As a work-a-round, I set ppReport.PDFSettings.OpenPDFFile to True.

    This of course launches the Adobe client and allows the users to email from there. However, the email client dialog
    initially appears, (first time only), so I set ppReport.EmailSettings.PreviewInEmailClient to False, which alleviated
    that problem.

    There must be something peculiar to my application to cause this. The above work-a-around seems to do the trick. So,
    I'll call this case closed Nico.

    Thanks so much for your help once again.

    John
This discussion has been closed.