Hi Antonio,
can you modifiy xBrowse to avoid the followin error,
1 - the user press the excel key in preview
2 - the xlsx file name request dialog appears
3 - if the user press ESC key or press button cancel
the error appears because oXlsx:cFile is empty
if ( oXlsx := XlsxObj( cFileXls ) ) == nil line 10859
? "Xlsx libraries not linked"
return nil
endif
modify
if empty( cFileNoExt( oXlsx:cFile ) )
return nil
endifApplication
Path and name: c:\Zephir\NwCoge\Sigah.exe (32 bits)
Size: ********* bytes
Compiler version: Harbour 3.2.0dev (r2503251254)
FiveWin version: FWH 25.09
C compiler version: Borland/Embarcadero C++ 7.7 (32-bit)
Windows 10 64 Bits, version: 10.0, Build 26200
Time from start: 26 sec
Error occurred at: 24/11/2025, 22:53:31
Error description: Error BASE/1075 Parametro errato: >
Args:
[ 1] = U
[ 2] = N 4
Stack Calls
Called from: .\source\function\fwxlsxlb.prg => (b)TWORKSHEET_SETARRAYDATA( 532 )
Called from: => AEVAL( 0 )
Called from: .\source\function\fwxlsxlb.prg => TWORKSHEET:SETARRAYDATA( 532 )
Called from: .\source\classes\xbrowse.prg => TXBROWSE:TOXLSX( 10889 )
Called from: .\source\classes\xbrowse.prg => TXBROWSE:TOEXCEL( 10975 )
Called from: .\source\classes\xbrowse.prg => (b)TXBROWSE_REPORT( 10571 )
Called from: .\source\classes\report.prg => TREPORT:TOEXCEL( 2124 )
Called from: .\source\classes\rpreview.prg => (b)TPREVIEW( 100 )
Called from: .\source\classes\rpreview.prg => TPREVIEW:EXPORTTOMSEXCEL( 0 )
Called from: .\source\classes\rpreview.prg => (b)TPREVIEW_BUILDBUTTONBAR( 411 )
Called from: .\source\classes\btnbmp.prg => TBTNBMP:CLICK( 816 )
Called from: .\source\classes\btnbmp.prg => TBTNBMP:LBUTTONUP( 1103 )
Called from: .\source\classes\control.prg => TCONTROL:HANDLEEVENT( 1867 )
Called from: .\source\classes\btnbmp.prg => TBTNBMP:HANDLEEVENT( 2146 )
Called from: .\source\classes\window.prg => _FWH( 3760 )
Called from: => SYSREFRESH( 0 )
Called from: .\source\function\msgrun.prg => STOPUNTIL( 70 )
Called from: .\source\classes\rpreview.prg => TPREVIEW:ACTIVATE( 179 )
Called from: .\source\classes\rpreview.prg => RPREVIEW( 1881 )
Called from: .\source\classes\report.prg => (b)TREPORT_NEW( 188 )
Called from: .\source\classes\report.prg => TREPORT:ACTIVATE( 917 )
Called from: .\source\classes\xbrowse.prg => TXBROWSE:REPORT( 10581 )
Called from: d:\servizio\prog\StdGes.prg => STDGES:GESTIONE( 5895 )
Called from: d:\servizio\prog\StdGes.prg => (b)STDGES_CREABAR( 2961 )
Called from: .\source\classes\toolbar.prg => TTOOLBAR:COMMAND( 237 )
Called from: .\source\classes\window.prg => TMDICHILD:COMMAND( 1222 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: .\source\classes\mdichild.prg => TMDICHILD:HANDLEEVENT( 347 )
Called from: .\source\classes\window.prg => _FWH( 3760 )
Called from: => WINRUN( 0 )
Called from: .\source\classes\window.prg => TMDIFRAME:ACTIVATE( 1178 )
Called from: prog\Main.prg => MAIN( 6680 )
TIA
Maurizio Menabue