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)
mcegar
Posts: 6
Joined: Tue Jul 14, 2015 5:41 pm

Sending emails silently with report in PDF attached

Postby mcegar » Wed Sep 02, 2015 6:40 pm

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,
User avatar
bingen
Posts: 380
Joined: Mon Jul 07, 2014 8:17 pm
Location: Bilbao
Contact:

Re: Sending emails silently with report in PDF attached

Postby bingen » Tue Sep 15, 2015 4:45 pm

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
Posts: 6
Joined: Tue Jul 14, 2015 5:41 pm

Re: Sending emails silently with report in PDF attached

Postby mcegar » Tue Sep 15, 2015 11:26 pm

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,
User avatar
ignacio
Site Admin
Posts: 8546
Joined: Mon Apr 06, 2015 8:00 pm
Location: Madrid, Spain
Contact:

Re: Sending emails silently with report in PDF attached

Postby ignacio » Thu Sep 17, 2015 12:10 pm

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,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
mcegar
Posts: 6
Joined: Tue Jul 14, 2015 5:41 pm

Re: Sending emails silently with report in PDF attached

Postby mcegar » Thu Sep 17, 2015 7:28 pm

Hello,

Nice,

I will look for the next version to test.

thanks

Return to “FastReport”