Fastreport y PDF sin pasar por un PREVIEW (SOLUCIONADO)

Fastreport y PDF sin pasar por un PREVIEW (SOLUCIONADO)

Postby Patricio Avalos Aguirre » Wed Mar 06, 2013 9:36 pm

Estimados

hay alguna forma de imprimir una archivo de fastreport a pdf sin pasar por vista preliminar que sea directo, ya que necesito enviar ese archivo por mail
sin que el usuario se entere

desde ya muchas gracias
Last edited by Patricio Avalos Aguirre on Thu Mar 07, 2013 12:18 pm, edited 1 time in total.
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
User avatar
Patricio Avalos Aguirre
 
Posts: 1059
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile

Re: Fastreport y PDF sin pasar por un PREVIEW

Postby jrestojeda » Wed Mar 06, 2013 10:07 pm

Hola amigo...
Prueba así:

Code: Select all  Expand view
oFr:PrepareReport()
oFr:DOExport("PDFExport")


Espero te sirva.
Saludos, Esteban.
Ojeda Esteban Eduardo.
Buenos Aires - Argentina.
FWH - PellesC - DBF/CDX - ADS - Gloriosos .Bat - MySql - C# .net - FastReport
Skype: jreduojeda
User avatar
jrestojeda
 
Posts: 583
Joined: Wed Jul 04, 2007 3:51 pm
Location: Buenos Aires - Argentina

Re: Fastreport y PDF sin pasar por un PREVIEW

Postby joseluisysturiz » Wed Mar 06, 2013 10:13 pm

Haber si esto te ayuda, saludos... :shock:

////////////////////////////////////////////////////////////////////////
// GetProperty()/ Universal functions that set or return any property
// SetProperty() - (except object property) of any Fast Report object.
// Possible values of sObjectName:
//
// Report, Designer,
// PDFExport, HTMLExport, RTFExport, CSVExport,
// XLSExport, DotMatrixExport, BMPExport, JPEGExport,
// TIFFExport, GIFExport, SimpleTextExport, MailExport
//
// For properties of objects that is property of this
// "main" objects '.'-delimeter must be used. For
// example:
// "Designer.DefaultFont"
//
// For full list of values for sPropName param see Fast
// Report documentation:
// http://www.fast-report.com/en/documentation/
//
// Examples:
// SetProperty("Report", "ScriptLanguage", "PascalScript")
// SetProperty("PDFExport", "FileName", "My file.pdf")
// SetProperty("PDFExport", "ShowDialog", .f.)
//
// For Delphi enumerated types and set type use its
// string representation, for example:
// SetProperty("Designer.DefaultFont", "Style", "[fsBold, fsItalic]")
//
////////////////////////////////////////////////////////////////////////

METHOD SetProperty(sObjectName, sPropName, Value) class frReportManager
MEMVAR tmp_Param
PRIVATE tmp_Param := Value
RETURN Call_Func_CC_I(::_SetProperty, sObjectName, sPropName) == 1
Dios no está muerto...

Gracias a mi Dios ante todo!
User avatar
joseluisysturiz
 
Posts: 2064
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela

Re: Fastreport y PDF sin pasar por un PREVIEW

Postby nnicanor » Wed Mar 06, 2013 10:34 pm

Para enviar directamente a PDF
Code: Select all  Expand view


   cFilenamePdf := "Prueba.pdf"

    oFr:SetProperty("PDFExport", "FileName", cFileNamePdf )
    oFr:SetProperty("PDFExport", "EmbeddedFonts", .t.)
    oFr:SetProperty("PDFExport", "PrintOptimized", .t.)
    oFr:SetProperty("PDFExport", "Creator", "Sistema Uno version 2.0")
    oFr:SetProperty("PDFExport", "OpenAfterExport", .t.)
    oFr:SetProperty("PDFExport", "ShowDialog",.f.)
    oFr:PrepareReport()
    oFr:DoExport("PDFExport")
 



Slds
Nicanor Martinez M.
Auditoria y Sistemas Ltda.
MicroExpress Ltda.
FW + FWH + XHARBOUR + HARBOUR + PELLES C + XDEVSTUDIO + XEDIT + BCC + VC_X86 + VCC_X64 + MINGW + R&R Reports + FastReport + Tdolphin + ADO + MYSQL + MARIADB + ORACLE
nnicanor@yahoo.com
nnicanor
 
Posts: 295
Joined: Fri Apr 23, 2010 4:30 am
Location: Colombia

Re: Fastreport y PDF sin pasar por un PREVIEW

Postby Patricio Avalos Aguirre » Thu Mar 07, 2013 12:17 pm

Hola

Muchas gracias a todos, funciona perfectamente
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
User avatar
Patricio Avalos Aguirre
 
Posts: 1059
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile

Re: Fastreport y PDF sin pasar por un PREVIEW (SOLUCIONADO)

Postby CARLOS ATUNCAR » Mon Mar 07, 2016 5:05 pm

Saludos,
Algun ejemplo para exportar a Word
CARLOS ATUNCAR
 
Posts: 118
Joined: Thu Sep 17, 2015 11:40 pm

Re: Fastreport y PDF sin pasar por un PREVIEW (SOLUCIONADO)

Postby Patricio Avalos Aguirre » Tue Mar 08, 2016 1:28 pm

Hola

Segun el manual estos son las salidas que soporta, puede que tenga mas ya que tengo una versian antigua
:DoExport(<cExportObjectName>)
Exports a report using the specified export filter object.
Parameters: <cExportObjectName> - character string containing the name of filter object.
Possible value one of:
"PDFExport", "HTMLExport", "RTFExport", "CSVExport", "XLSExport",
"DotMatrixExport", "BMPExport", "JPEGExport", "TXTExport",
"TIFFExport", "GIFExport", "SimpleTextExport", "MailExport",
"XMLExport", "ODSExport", "ODTExport"
The detailed descriptions of these objects see below.
Saludos
Patricio

__________________________________________________________________
Version: Harbour 3.2.0dev (r1307082134),Compiler: Borland C++ 5.8.2 (32-bit)
PCode version: 0.3, FWH 13.2
http://www.sialm.cl
User avatar
Patricio Avalos Aguirre
 
Posts: 1059
Joined: Fri Oct 07, 2005 1:56 pm
Location: La Serena, Chile


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 24 guests