FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Crear archivo PDF desde FIVEWIN
Posts: 102
Joined: Fri May 09, 2008 08:19 PM
Crear archivo PDF desde FIVEWIN
Posted: Sat Jun 05, 2010 07:46 PM

Hola, quisiera saber como crear directamente desde el programa FIVEWIN un archivo PDF.

Gracias,

Juan Fco. Vásquez M.

Posts: 610
Joined: Wed Oct 19, 2005 08:20 PM
Re: Crear archivo PDF desde FIVEWIN
Posted: Sat Jun 05, 2010 07:54 PM

Solo con fivewin no se puede a menos que uses una librebría externa como por ejemplo image2PDF.dll

Un saludo,

Manuel



xH 1.2.3, FWH 23.07 32 bits, BC++ 7.4, xVerce CW 1.0, PellesC
Posts: 325
Joined: Sun Feb 03, 2008 11:04 PM
Re: Crear archivo PDF desde FIVEWIN
Posted: Sat Jun 05, 2010 11:15 PM

Hola estimado

Yo uso PDFCREATOR

al inicio del programa

PdfCreatorCFG( 1 , (SEMIPRSE)->PATH_PDF )

y cuando quiero imprimir:

oPrn:=PrintBegin(NomArc,.f., ,"PDFCreator",.T.)

Saludos

David

Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Crear archivo PDF desde FIVEWIN
Posted: Mon Jun 07, 2010 04:35 AM

Dear Juan,

You can create PDF file from your application by using the Class TPdf without the need of any external DLL's or Printer drivers. You should link xHarbour's lib Zlib too in your make file.

Please refer this link viewtopic.php?f=6&t=18054&hilit=TPdf#p94541

Regards
Anser

Posts: 1078
Joined: Thu Sep 27, 2007 03:47 PM
Re: Crear archivo PDF desde FIVEWIN
Posted: Tue Jun 08, 2010 04:18 PM
dobfivewin wrote:Hola estimado

Yo uso PDFCREATOR

al inicio del programa

PdfCreatorCFG( 1 , (SEMIPRSE)->PATH_PDF )

y cuando quiero imprimir:

oPrn:=PrintBegin(NomArc,.f., ,"PDFCreator",.T.)

Saludos

David


David e pregunto,
Se debe instalar el PEDCRREATOR
la funcion que usted dice en su ejemplo
PdfCreatorCFG() --> la tiene fivewin.
Puedes publicar el ejemplo completo.
Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
Re: Crear archivo PDF desde FIVEWIN
Posted: Fri Jul 30, 2010 09:14 PM
dobfivewin wrote:Hola estimado

Yo uso PDFCREATOR

al inicio del programa

PdfCreatorCFG( 1 , (SEMIPRSE)->PATH_PDF )

y cuando quiero imprimir:

oPrn:=PrintBegin(NomArc,.f., ,"PDFCreator",.T.)

Saludos

David


Hola,
En ese printBegin se le puede pasar el ancho y el largo?

gracias.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Posts: 989
Joined: Thu Nov 24, 2005 03:01 PM
Re: Crear archivo PDF desde FIVEWIN
Posted: Sat Jul 31, 2010 02:45 PM

Gus,

el oPrn es un objeto TPrinter normal, así es que el tamaño de página, y la impresión se hace como siempre.

La única duda es ¿Donde está la PdfCreatorCFG() ? ;)

Un saludo

Saludos
Carlos Mora
http://harbouradvisor.blogspot.com/
StackOverflow http://stackoverflow.com/users/549761/carlos-mora
“If you think education is expensive, try ignorance"

Continue the discussion