Wads
asked on
E-Mail report
I'm new to delphi (I'm using D6)
I'm creating a database & need to e-mail reports from the database. How do I do this using QReport?
If this is not possibe can someone advise alternatives?
Tim
I'm creating a database & need to e-mail reports from the database. How do I do this using QReport?
If this is not possibe can someone advise alternatives?
Tim
Try this example:
1.- Drop a Ttable and Tdatasource in a form
2.- Connect then to a Data source.
3.- Drop a Tquickrep in the form and connect it to the table.
4.- The Tquickrep must have Detail.
5.- Resize the Detail to occupate a full page.
6.- Drop in the Detail a TQRexprMemo and resize it too.
Now you select the lines property in the Object inspector and click in Tstrings.
Write the letter. and the name of fields would be in brackets.
Dear {Customer} we sent you the ..........
Customer is the name of a field in the table.
1.- Drop a Ttable and Tdatasource in a form
2.- Connect then to a Data source.
3.- Drop a Tquickrep in the form and connect it to the table.
4.- The Tquickrep must have Detail.
5.- Resize the Detail to occupate a full page.
6.- Drop in the Detail a TQRexprMemo and resize it too.
Now you select the lines property in the Object inspector and click in Tstrings.
Write the letter. and the name of fields would be in brackets.
Dear {Customer} we sent you the ..........
Customer is the name of a field in the table.
Hi Wads,
Post your email address and I'll send you my exe and code. It's just a quick demo I wrote which does what you want.
If you want to keep your address private, email me at gtho1971@hotmail.com instead.
Cheers,
Stu.
Post your email address and I'll send you my exe and code. It's just a quick demo I wrote which does what you want.
If you want to keep your address private, email me at gtho1971@hotmail.com instead.
Cheers,
Stu.
Hi Tim,
I have emailed the source code to you. I was just thinking, if anyone else wants it, I'll post it up here.
Cheers,
Stu
I have emailed the source code to you. I was just thinking, if anyone else wants it, I'll post it up here.
Cheers,
Stu
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Stu,
Thanks for your response, sorry for the delay. It'll do nicely.
Cheers,
Tim
Thanks for your response, sorry for the delay. It'll do nicely.
Cheers,
Tim
That's cool Tim. I'm glad it helped. Thanks for the grading too.
Cheers!
Stu
Cheers!
Stu
If you have the professional Version Of Quickreport you can use the WMF-Filter to render the Quickreport.
After you get the WMF-Images, you can send them.
Best Regards
Cesario