Skip to main content
Solved

how can i add filter to show on the header in excel file writer output

  • February 1, 2020
  • 4 replies
  • 114 views

soly
Contributor
Forum|alt.badge.img+3
  • Contributor

i want to show filter on the header of column and change size of line and do the words inside cell in the center and each celll has size 50 .i mean rrange the cell and show fiolter that exactly what i need

if it is not possible to apply filter in the output ,at least my input excel has filter on header ,i want to keep the filter as input i mean do no action on it .thanks

Best answer by takashi

I think you can use a template Excel spreadsheet with filters to copy the same style including filters to the destination Excel spreadsheet.

Template example:

Template setting in the Excel writer parameters: set the template Excel file path to the Template File parameter. The template file should contain a worksheet whose name is the same as the destination feature type ("result" in this example).

View original
Did this help you find an answer to your question?

4 replies

Forum|alt.badge.img
  • February 1, 2020

If you prepare an empty excel file with the formats and filters you need, you can then use a FeatureWriter to write to that empty file, instead of using a Writer to create a new file.

 

So check out the FeatureWriter and play around with its excel settings and you should be able to get the result you want. Good luck! :-)

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • Best Answer
  • February 1, 2020

I think you can use a template Excel spreadsheet with filters to copy the same style including filters to the destination Excel spreadsheet.

Template example:

Template setting in the Excel writer parameters: set the template Excel file path to the Template File parameter. The template file should contain a worksheet whose name is the same as the destination feature type ("result" in this example).


soly
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • February 2, 2020
takashi wrote:

I think you can use a template Excel spreadsheet with filters to copy the same style including filters to the destination Excel spreadsheet.

Template example:

Template setting in the Excel writer parameters: set the template Excel file path to the Template File parameter. The template file should contain a worksheet whose name is the same as the destination feature type ("result" in this example).

thanks alot


soly
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • February 2, 2020
danullen wrote:

If you prepare an empty excel file with the formats and filters you need, you can then use a FeatureWriter to write to that empty file, instead of using a Writer to create a new file.

 

So check out the FeatureWriter and play around with its excel settings and you should be able to get the result you want. Good luck! :-)

thanks alot


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings