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.
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.
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...
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.
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.
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.
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.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
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
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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