Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
Hey John
I thought there should be a way to do the pre-selection - so I looked at
the contents of the sheet XML that is in the XLSX file - I assume you
are creating the new format, not the Excel 95=98 format.
So an XLSX file is a ZIPped archive of upwards of 30 files, most are XML
content.
I made a simple XLSX from running a SELECT statement in the ACS Run SQLxr:uid="{5C638613-BD28-4959-90CB-6DA09179BBE6}">
SCripts action, then saved the results.
Then I opened the XLSX file, turned on filters, and saved it with a new
name.
Then I for value TX in column 5 and saved the Excel file again, with a
new name.
Then I opened each of the files with filter using 7-Zip - just
right-click the file and select to open the archive.
In each archive there will be an XL directory with a Worksheets
directory in that. In the latter is the sheet1.xml - and here are the
contents related to filters -
For just turning the filters on, this is near the end -
<autoFilter ref="A1:K13"
xr:uid="{5C638613-BD28-4959-90CB-6DA09179BBE6}"/>
I don't know what the xr:uid thing is about, Microsoft doesn't add
that. But the ref is the range that is filtered.
Now for the sheet when I selected something, here it "autoFilter" node -
<autoFilter ref="A1:K13"
<filterColumn colId="5">
<filters>
<filter val="TX"/>
</filters>
</filterColumn>
</autoFilter>
So the values ARE there - maybe the function in the service program has
the ability to add this, but maybe not - POI tends to do exactly 1 thing
or level, nested stuff has to be done on its own. Every attribute of a
cell uses a separate method, for example.
Here a child of <autoFilter> would be <filterColumn>, a child of that
would be <filters>, and actual filters would be child of that.
I hope this can lead to success! Personally I do it all with CGIDEV2,those.
using MS' output as models for templates - there is almost no
functionality limit other than how hard I want to work at it. I still
have not worked at pivot tables! Far too many internal objects for
Regards
Vern
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.