In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Sending emails silently with report in PDF attached

FastReport for Xailer & [x]Harbour (English/Spanish)
Responder
mcegar
Mensajes: 6
Registrado: Mar Jul 14, 2015 5:41 pm

Sending emails silently with report in PDF attached

Mensaje 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,
Avatar de Usuario
bingen
Mensajes: 564
Registrado: Lun Jul 07, 2014 8:17 pm
Ubicación: Bilbao
Contactar:

Re: Sending emails silently with report in PDF attached

Mensaje 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.
BiSoft Desarrollo de software profesional
http://www.bisoft.es
mcegar
Mensajes: 6
Registrado: Mar Jul 14, 2015 5:41 pm

Re: Sending emails silently with report in PDF attached

Mensaje 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,
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9243
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Re: Sending emails silently with report in PDF attached

Mensaje 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,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
mcegar
Mensajes: 6
Registrado: Mar Jul 14, 2015 5:41 pm

Re: Sending emails silently with report in PDF attached

Mensaje por mcegar »

Hello,

Nice,

I will look for the next version to test.

thanks
Responder