FastReport Error: Workspace not used.
Posted: Sat Jan 25, 2014 12:42 am
Hello forum friends
I think the temporary table in a UDF, generated the report.
After the UDF, I close the table.
Sometimes it shows the error, it is becoming more common, and not know why.
the Message
I think the temporary table in a UDF, generated the report.
After the UDF, I close the table.
Sometimes it shows the error, it is becoming more common, and not know why.
Code: Select all
LOCAL aStruct := { { "FECHA", "D", 8, 0 }, ;
{ "DOCNUM", "C", 8, 0 }, ;
{ "TDOC", "C", 3, 0 }, ;
{ "OBS", "C", 75, 0 }, ;
{ "DEBE", "N", 14, 2 }, ;
{ "HABER", "N", 14, 2 }, ;
{ "SALDO", "N", 14, 2 } }
PUBLIC oFrPrn
DBCREATE( "TEMP\RC_EDCTA", aStruct, "DBFCDX", .t., "C_EDCTA" ) ; CargarDatosdesdeSQL()
CrearReporte()
SELECT C_EDCTA ; USE
RETURN NIL
FUNCTION CrearReporte()
SELECT C_EDCTA ; DBGOTOP()
AdjReport()
oFrPrn:LoadFromFile(CurDrive()+":\"+CurDir() +"\REPS\Clientes Estados de Cuenta.fr3")
oFrPrn:AddVariable("My Vars", "cTitulo", "'" + cTitulo + "'" )
oFrPrn:AddVariable("My Vars", "cTitCta", "'" + ALLTRIM(cCliente) + "'" )
oFrPrn:ShowReport()
RETURN NIL
FUNCTION AdjReport()
With Object oFrPrn
:AddReport()
:LoadLangRes( CurDrive()+":\"+CurDir() +"\REPS\spanish.xml" )
:EngineOptions:SetTempDir( CurDrive()+":\"+CurDir()+"\TEMP\" )
:PreviewOptions:SetModal(.F.)
:PreviewOptions:SetRemoveReportOnClose(.T.)
:SetWorkArea( ALIAS(), SELECT() )
End
RETURN NIL