FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Mister Nages, ayuda xbrowse, repxb01.prg
Posts: 38
Joined: Tue Jan 22, 2019 08:28 AM
Mister Nages, ayuda xbrowse, repxb01.prg
Posted: Sat Oct 24, 2020 06:58 PM
Hola,

Tengo problemas con las posiciones decimales con Xbrowse to Excel... (utilizo calc de LibreOffice)

También con el ejemplo repxb01.prg me ocurre lo mismo, la columna SALARY no lo envía al fichero XLS en formato numerico

Gracias por vuestra ayuda, saludos,

[img]https://i.ibb.co/rxhpWMp/report.png" alt="" loading="lazy">

[/img]

Code (fw): Select all Collapse
/*
*
*  repxb01.prg
*  Demonstrate the use of command XBREPORT
*
*/

#include "FiveWin.Ch"
#include "ord.ch"
#include "xbrowse.ch"

//----------------------------------------------------------------------------//

REQUEST DBFCDX

//----------------------------------------------------------------------------//

function Main()

   local oTmp, oRs

   SET DATE ITALIAN
   SET CENTURY ON
   SET DELETED ON
   SET EXCLUSIVE OFF
   RDDSETDEFAULT( "DBFCDX" )
   XbrNumFormat( 'A', .t. )

   MsgInfo( "Quick Report from DBF" )
   USE CUSTOMER NEW ALIAS CUST SHARED READONLY
   XBREPORT oTmp TITLE "CUSTOMERS" ;
      DATASOURCE "CUST" COLUMNS "FIRST", "LAST", "CITY", "STATE", "AGE", "SALARY" ;
      BRWSETUP { |oBrw| oBrw:Salary:nFooterType := AGGR_SUM }
   CLOSE CUST

return (0)

//----------------------------------------------------------------------------//
Jorge

--------------------------------------------------

Fivewin 18.10 - Harbour - BCC 7 - PellesC

--------------------------------------------------
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Mister Nages, ayuda xbrowse, repxb01.prg
Posted: Sun Oct 25, 2020 12:43 PM

We will look into this and get back to you.

Regards



G. N. Rao.

Hyderabad, India
Posts: 38
Joined: Tue Jan 22, 2019 08:28 AM
Re: Mister Nages, ayuda xbrowse, repxb01.prg
Posted: Sun Oct 25, 2020 04:17 PM

Thank you very much Mr.Nages

Jorge

--------------------------------------------------

Fivewin 18.10 - Harbour - BCC 7 - PellesC

--------------------------------------------------
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: Mister Nages, ayuda xbrowse, repxb01.prg
Posted: Wed Oct 28, 2020 05:39 PM
De esta manera, aqui hace bien la exportacion a Excel.
Code (fw): Select all Collapse
REQUEST DBFCDX
//----------------------------------------------------------------------------//
function xBrwReport2()   //Main()
   local oTmp, oRs

   SET DATE ITALIAN
   SET CENTURY ON
   SET DELETED ON
   SET EXCLUSIVE OFF
   RDDSETDEFAULT( "DBFCDX" )
   XbrNumFormat( 'A', .t. )

   MsgInfo( "Quick Report from DBF" )
   USE CUSTOMER NEW ALIAS CUST SHARED READONLY
   XBREPORT oTmp TITLE "CUSTOMERS" ;
      DATASOURCE "CUST" COLUMNS "FIRST", "LAST", "CITY", "STATE", "AGE", "SALARY" ;
      BRWSETUP { |oBrw| oBrw:Salary:nFooterType := AGGR_SUM ,;
                        oBrw:Salary:cEditPicture := "999,999,999.99" }     //<---- aqui
   CLOSE CUST

return (0)

Saludos.
Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 38
Joined: Tue Jan 22, 2019 08:28 AM
Re: Mister Nages, ayuda xbrowse, repxb01.prg
Posted: Wed Oct 28, 2020 08:21 PM

Muchas gracias Francisco,

Pero NO ME funciona... utilizo configuración regional "Español/España", donde el separador de miles es "." i el de decimales ","
también he probado con XbrNumFormat( 'E', .t. ) y picture "@E 99,999,999.99"

Llevo tiempo con el tema y no logro solucionarlo, igual es una tontería pero no logro verlo.

Agradecería mucho si alguien puede ayudarme,

Muchas gracias a todos, saludos,

Jorge

--------------------------------------------------

Fivewin 18.10 - Harbour - BCC 7 - PellesC

--------------------------------------------------
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: Mister Nages, ayuda xbrowse, repxb01.prg
Posted: Wed Oct 28, 2020 11:53 PM

Jorge, tienes razón en cuanto al tipo de separadores.
Yo mas bien me refería a que de esa manera si exporta a Excel en formato numerico.
De todos modos, esperemos al maestro.

Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql

Continue the discussion