Preview con la clase Tprinter habilitando boton Excel

Preview con la clase Tprinter habilitando boton Excel

Postby pedroluis » Mon Oct 23, 2017 6: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
User avatar
pedroluis
 
Posts: 99
Joined: Sun Oct 08, 2017 12:51 pm
Location: San Luis (Capital), Argentina

Re: Preview con la clase Tprinter habilitando boton Excel

Postby cmsoft » Mon Oct 23, 2017 9: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.
User avatar
cmsoft
 
Posts: 1188
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina

Re: Preview con la clase Tprinter habilitando boton Excel

Postby vinhesoft » Fri Oct 27, 2017 9: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 Ltda
vinhesoft
 
Posts: 23
Joined: Sat Sep 03, 2016 3:11 pm
Location: Campinas/SP-Brasil

Re: Preview con la clase Tprinter habilitando boton Excel

Postby pedroluis » Thu Nov 02, 2017 8: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
User avatar
pedroluis
 
Posts: 99
Joined: Sun Oct 08, 2017 12:51 pm
Location: San Luis (Capital), Argentina

Re: Preview con la clase Tprinter habilitando boton Excel

Postby cmsoft » Thu Nov 02, 2017 9:54 pm

En lo misma clase TPreview, en source\classes
User avatar
cmsoft
 
Posts: 1188
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina

Re: Preview con la clase Tprinter habilitando boton Excel

Postby ORibeiro » Thu Aug 29, 2019 1: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
User avatar
ORibeiro
 
Posts: 187
Joined: Mon Oct 20, 2008 6:33 pm
Location: Itu, Sao Paulo, Brazil


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 14 guests