Converting reports for email
We generate a lot of invoices in .raf format (Delphi 7 Enterprise with
RBuilder 9), and need to be able to send some of the invoices out via
email.
I haven't found anything describing the format of an .raf file (which
I expect will be proprietary...), and we really don't want to buy
third-party components to do this.
Is there an easy way to convert existing .raf files into .pdf or html?
Even text might work, if the report data isn't too badly mangled in
the process (grin).
Thanks,
Mark Edwards
This discussion has been closed.
Comments
ReportBuilder 9 and higher includes a native PDF export device. Using the
ArchiveReader, you can export your .raf files to PDF by setting the
AllowPrintToFile property to True and changing the device type to PDF. You
will also need to be sure you add ppPDFDevice to your uses clause. For more
information on using the PDF Device, take a look at the TppPDFDevice topic
in the RBuilder help.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
One of the cool features we added for RB 10 is built-in support for emailing
reports.
- email reports from the report previewer (the new email button will invoke
the user's default email program, such as MS Outlook with the report
attached as a pdf)
- email reports programmatically (i.e. without showing any user interface).
- email reports in any format (including support for RB add-on export
devices. By default, reports are emailed as a pdf attachment)
- progammaticaly specify the email address, subject, message body, etc.
- inlcudes email plug-ins for Outlook, MAPI, and Indy
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
I had this working (email button in previewer) ok using Outlook Express.
Loaded MS Office w/ Outlook, and it quit working. I un-installed Outlook
but that didn't help. I can mail manually using Outlook Express now so I
know Outlook Express is configured properly; however, using the icon on the
previewer, the hourglass blinks briefly and that's all.
For good measure, I added ppSMTPOutlook, ppPDFDevice to my uses statement
but that made no difference. Its like it can't find the default mail
client.
Any ideas?
Bill Skelton
Landmark Data Systems, Inc.