Página 1 de 1

Sending emails silently with report in PDF attached

Publicado: Mié Sep 02, 2015 6:40 pm
por 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

Publicado: Mar Sep 15, 2015 4:45 pm
por 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

Publicado: Mar Sep 15, 2015 11:26 pm
por 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

Publicado: Jue Sep 17, 2015 12:10 pm
por ignacio
mcegar escribió: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

Publicado: Jue Sep 17, 2015 7:28 pm
por mcegar
Hello,

Nice,

I will look for the next version to test.

thanks