nageswaragunupudi wrote:1) You can call oBrw:ToExcel() without any parameters.
2) Export to Excel works from Preview of Report class.
3) I posted a sample above. Please copy the sample to \fwh\samples folder and build it with buildx.bat
Is this sample working for you correctly as expected?
Dear Rao
1) I know that but i need more control about oBrw:ToExcel().
2) To me doesn´t work from Preview. I get 2 function`s give reports with preview and the excel buttom is Disabled.
3) I did and It works very well but when I call from may program it doesn' works.
my function:
Function ImpBoletas(cRut,cSocio)
Local oLis
//cBuscar:=Ctaarr->(Fieldget(3))+Str(Ctaarr->(Fieldget(6)),2)+Str(Ctaarr->(Fieldget(7)),4)
Boletas->(DBGoTop())
REPORT oLis TITLE "BOLETAS DE "+cSocio,"","RUT "+cRut;
HEADER "SINDICATO DE TRABAJADORES HONORARIOS",;
"Fecha: "+Dtoc(Date()),;
"Hora : "+Time() LEFT ;
FOOTER "Pag "+Str(oLis:nPage,3) CENTERED;
CAPTION "Boletas de Medicamentos";
PREVIEW
COLUMN TITLE "FECHA" DATA Boletas->FECHA
COLUMN TITLE "Nº BOLETA" DATA Boletas->NUM_BOL
COLUMN TITLE "DETALLE" DATA Boletas->DETALLE
COLUMN TITLE "VALOR" DATA Boletas->VALOR;
PICTURE "@E 99,999,999";
RIGHT TOTAL
END REPORT
oLis:bInit := { || Boletas->( DBGOTOP() ) }
ACTIVATE REPORT oLis
//Boletas->(DBGoTop())
Return(NIL)
Thanks
Best Regards
Waldemar