Email not working on Vista Bussiness, RB Ent 10.08, Codegear2007.
Hi, I upgraded from 10.07, hoping the email problem would be sorted out. I
ported my code to a vista machine in March 2008.
When I tested my emailing of reports, that worked perfectly on my old XP
machine, using MAPI, and default mail client, I found that it didnn't workk
at all in Vista.
A window now pops up in Vista that says: ReportBuilder Email (ie
ppReport1.EmailSettings.ShowEmailDialog := True;)
PROBLEM - There is NO report attached at all.
I tried running you Report1, demo 110, and if I press MAPI(Default Mail
Client) nothing happens. I have to terminate the process in delphi.
If I press Email from Preview, then when I press the email button on the
report, it shows the busy icon, and nothing happens.
PS I have microsoft windows mail for Vista installed on this pc.
This is a bit of a problem...
Any suggestions.
Regards
Adrian Wreyford
ported my code to a vista machine in March 2008.
When I tested my emailing of reports, that worked perfectly on my old XP
machine, using MAPI, and default mail client, I found that it didnn't workk
at all in Vista.
A window now pops up in Vista that says: ReportBuilder Email (ie
ppReport1.EmailSettings.ShowEmailDialog := True;)
PROBLEM - There is NO report attached at all.
I tried running you Report1, demo 110, and if I press MAPI(Default Mail
Client) nothing happens. I have to terminate the process in delphi.
If I press Email from Preview, then when I press the email button on the
report, it shows the busy icon, and nothing happens.
PS I have microsoft windows mail for Vista installed on this pc.
This is a bit of a problem...
Any suggestions.
Regards
Adrian Wreyford
This discussion has been closed.
Comments
This is how the email feature is designed to work. The report is not
generated until the send button of the built-in email dialog is clicked.
The report will then automatically be attached to the email and sent. The
attachment field of the email dialog is provided so users can include
additional attachments.
In my testing with RB 10.08, Delphi 2007, and Vista Ultimate the MAPI
example works correctly. You need to be sure you do not have Windows Mail
or Outlook opened in the background for this example to work correctly.
This seems to be an issue with Vista and Simple MAPI. An alternative would
be to use the Indy or Synapse plugin to send the mail directly without the
use of an email client.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Placing the plugin in the uses clause will automatically register it with
ReportBuilder. There should be no need to register it again unless you are
registering other email plugins prior.
The PDF file should not open unless you have the
Report.PDFSettings.OpenPDFFile property set to True.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I just picked up on the Report.PDFSettings.OpenPDFFile property set to True,
and I do have that set to true, when the client prints to file, so that he
can see the resultant file.
Is there a way to only have it true for print to file, and not for email?
Regards
Adrian Wreyford
event of the report.
Regards
Adrian Wreyford