FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FastReport - Preview PDFEXPORT
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
FastReport - Preview PDFEXPORT
Posted: Mon Nov 20, 2017 11:39 AM

Friends, exporting PDF by preview does not work well for me. I would really like to switch the action of the EXPORT PDF option to my function. Can someone help me?

In this topic Mr. Marco Turco helped to do something like email:

viewtopic.php?f=3t=16511p=85501hilit=fastreport+email#p85501

&&&

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 2064
Joined: Fri Jan 06, 2006 09:28 PM
Re: FastReport - Preview PDFEXPORT
Posted: Mon Nov 20, 2017 02:39 PM
Saludos, con esto me trabaja bien..casualmente estoy en ese trabajo en este momento..saludos...gracias... :-)

Code (fw): Select all Collapse
      IF lEditor
         oFr:DesignReport() // LLAMO AL DISEÑADOR
      ELSE // SIN DISEÑADOR

// DIRECTO A PDF - ALBEIRO
         oFr:SetProperty("PDFExport", "DefaultPath", cPathPdf) // DIRECTORIO DONDE GUARDAR ARCHIVO
         oFr:SetProperty("PDFExport", "FileName", cFilePdf) // NOMBRE DEL ARCHIVO
         oFr:SetProperty("PDFExport", "ShowDialog", .f.) // MOSTRAR DIALOGO PARA IMPRIMIR
         oFr:SetProperty("PDFExport", "OpenAfterExport", .t.) // ABRIR DESPUES DE CREAR...
         oFr:SetProperty("PDFExport", "EmbeddedFonts", .t.) // FUENTES ENCRUSTRADAS
         oFr:SetProperty("PDFExport", "PrintOptimized", .t.)
         oFr:SetProperty("PDFExport", "Outline", .t.)
         oFr:SetProperty("PDFExport", "Compressed", .f.) // COMPRIMIR TEXTO - JLY
         ***
         oFr:PrepareReport() // PREPARAR EL REPORTE
         oFr:DoExport("PDFExport") // EJECUTA LA EXPORTACION
      ENDIF
   ENDIF

   oFr:DestroyFR() // DESTRUYO EL DISEÑADOR
Dios no está muerto...



Gracias a mi Dios ante todo!
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: FastReport - Preview PDFEXPORT
Posted: Tue Nov 21, 2017 07:18 PM

José Gracias

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin

Continue the discussion