Page 1 of 1

Sending emails silently with report in PDF attached

Posted: Wed Sep 02, 2015 6:40 pm
by mcegar
Hello,

I need help again.

I want to make sending emails silently with report in PDF attached, and only I have a problem:

In export the report to email (MailExport), I am using the function SetProperty () to set programmatically export information.

The property "ExportFilter" does not work or no exist.

xHarbour syntax:

oReport: SetProperty ("MailExport" "ExportFilter" "PDFExport")

error:

"Undeclared identifier: 'ExportFilter'

I checked the source code of fastreport and this property exists.

Anyone know solution for this?

PS: If not set the ExportFilter, FastReport this by attaching a file in fp3 format.

thanks,

Re: Sending emails silently with report in PDF attached

Posted: Tue Sep 15, 2015 4:45 pm
by bingen
It's better to make silently a PDF with FR and save into disk and then send it via email by your own app without FR.

Re: Sending emails silently with report in PDF attached

Posted: Tue Sep 15, 2015 11:26 pm
by mcegar
I'm just trying to simplify and automate the process without having to implement an e-mail sending module in my application. If this property there will be very interesting to work.

However, if this is not fixed, your solution is correct.

thanks,

Re: Sending emails silently with report in PDF attached

Posted: Thu Sep 17, 2015 12:10 pm
by ignacio
mcegar wrote:oReport: SetProperty ("MailExport" "ExportFilter" "PDFExport")
error: "Undeclared identifier: 'ExportFilter'


The third parameter is not a string, it should be a pointer to a TfrxCustomExportFilter object. This can not be accomplished from [x]Harbour. BTW, we have made a work-around to fix it using a string as your proposal. It will be available on next release.

Regards,

Re: Sending emails silently with report in PDF attached

Posted: Thu Sep 17, 2015 7:28 pm
by mcegar
Hello,

Nice,

I will look for the next version to test.

thanks