Question : DevExpress export from QuantumGrid specific for WINDOW1, WINDOW2

I have this DevExpress Quantumgrid suite and it has a utility to export a grid as excel.
We have to source code to this export routine.
When I export a grid and open this file in excel,
there is 1 worksheet in the workbook
It's the only page, but it's not active !!!
When you click print, since no pages are active and it only prints the active page by default, excel says:
"Nothing to print", and it's actually right ...

The way the export is made is by streaming chunks of headers.
One of these chunks has probably a wrong bit set.

I was looking for someone who knows what bit must be set to set a sheet active
My beleive is it is in the WINDOW1 header

i have found a excel file format link which explains the structure of the excel
http://sc.openoffice.org/excelfileformat.pdf

any ideas ? of what bit to change ?

in attachment a file with this behaviour

double clicking the worksheet name activates it, but this is a workaround i want to avoid

Answer : DevExpress export from QuantumGrid specific for WINDOW1, WINDOW2

found the solution.
restarted a fresh from the devexpress code
and left in the least of 3 bugs.

The grid lines are left invisible and the only tab is now the active one.

Devexpress still needs to change their code so WordWrap can be switched off,
the grid lines can be set on or off,
the name of the tabsheet can be set (now this is obscure how to)
Random Solutions  
 
programming4us programming4us