FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Preview con la clase Tprinter habilitando boton Excel
Posts: 117
Joined: Sun Oct 08, 2017 12:51 PM
Preview con la clase Tprinter habilitando boton Excel
Posted: Mon Oct 23, 2017 06:59 PM

Este es un encabezado clásico de un listado de facturación con la clase Tprinter
PRINTER olis PREVIEW NAME "IVA Ventas - Facturado"

Como hago con el FWH 17.09 para que se habilite el botón de Excel.

Muchas. Gracias.
Pedro Lavallén.
Argentina - San Luis

Pedro L. Lavallen

San Luis (Capital), Argentina
Posts: 1344
Joined: Wed Nov 16, 2005 09:14 PM
Re: Preview con la clase Tprinter habilitando boton Excel
Posted: Mon Oct 23, 2017 09:32 PM

Hola Pedro:
El boton de exportar a Excel se habilita solo en la clase REPORT, y exporta cada fila / columna segun lo definido en el report.
La clase PRINTER no tiene esa opcion, puesto que no es una grilla de filas y columnas.

Posts: 36
Joined: Sat Sep 03, 2016 03:11 PM
Re: Preview con la clase Tprinter habilitando boton Excel
Posted: Fri Oct 27, 2017 09:25 AM

Este recurso existe desde la versión 16.11

mira:

  • New DATA bToExcel OF TPrinter object.
    If specified this codeblock is used by the Preview class
    for exporting to Excel

fwh\samples\prn2excel.prg

João Carlos

VinheSoft Informatica

BCC 7.7 - FHW 24.07 - Harbour 3.2.0dev (r2404101339) for BCC 7.7
Posts: 117
Joined: Sun Oct 08, 2017 12:51 PM
Re: Preview con la clase Tprinter habilitando boton Excel
Posted: Thu Nov 02, 2017 08:45 PM

Cuando hago el preview sale el listado con decimales.
Cuando el boton Excel del preview, no me salen los decimales, solamente salen enteros
¿ Como hago para que salgan 2 decimales ?

¿ Donde se puede conseguir más información sobre éste tema del Excel ?

Gracias !
Pedro Lavallén.

Pedro L. Lavallen

San Luis (Capital), Argentina
Posts: 1344
Joined: Wed Nov 16, 2005 09:14 PM
Re: Preview con la clase Tprinter habilitando boton Excel
Posted: Thu Nov 02, 2017 09:54 PM

En lo misma clase TPreview, en source\classes

Posts: 187
Joined: Mon Oct 20, 2008 06:33 PM
Re: Preview con la clase Tprinter habilitando boton Excel
Posted: Thu Aug 29, 2019 01:43 PM

A classe REPORT.PRG tem um METHOD ToExcel() e o PRINTER.PRG não tem.

Alguém conseguiu implementar essa função na classe PRINTER.PRG?

Oscar Ribeiro

OASyS Informática

Fwh18.02 + xHarbour 1.2.3 + Bcc72

Continue the discussion