M
Matt
I have a web page that reads a dataset, populates a datagrid, and then
launches Excel to display the results. I was able to format the results
(font, background color ..) and even create a filter for the top header
row, but I want to also freeze the panes. Does anyone know of a way to
program the WorksheetOptions information?
Below is a sample of what I would like the result to be. I got this
result by freezing the panes in Excel and saving the file to HTML
format. I'm not sure if there is a way to send this information to
Excel.
Any ideas?
<x:WorksheetOptions>
<x:CodeName>Sheet1</x:CodeName>
<x:Selected/>
<xoNotDisplayGridlines/>
<x:FreezePanes/>
<x:FrozenNoSplit/>
<x:SplitHorizontal>2</x:SplitHorizontal>
<x:TopRowBottomPane>2</x:TopRowBottomPane>
<x:SplitVertical>2</x:SplitVertical>
<x:LeftColumnRightPane>2</x:LeftColumnRightPane>
<x:ActivePane>0</x:ActivePane>
<xanes>
<xane>
<x:Number>3</x:Number>
</xane>
<xane>
<x:Number>1</x:Number>
</xane>
<xane>
<x:Number>2</x:Number>
</xane>
<xane>
<x:Number>0</x:Number>
</xane>
</xanes>
<xrotectContents>False</xrotectContents>
<xrotectObjects>False</xrotectObjects>
<xrotectScenarios>False</xrotectScenarios>
</x:WorksheetOptions>
launches Excel to display the results. I was able to format the results
(font, background color ..) and even create a filter for the top header
row, but I want to also freeze the panes. Does anyone know of a way to
program the WorksheetOptions information?
Below is a sample of what I would like the result to be. I got this
result by freezing the panes in Excel and saving the file to HTML
format. I'm not sure if there is a way to send this information to
Excel.
Any ideas?
<x:WorksheetOptions>
<x:CodeName>Sheet1</x:CodeName>
<x:Selected/>
<xoNotDisplayGridlines/>
<x:FreezePanes/>
<x:FrozenNoSplit/>
<x:SplitHorizontal>2</x:SplitHorizontal>
<x:TopRowBottomPane>2</x:TopRowBottomPane>
<x:SplitVertical>2</x:SplitVertical>
<x:LeftColumnRightPane>2</x:LeftColumnRightPane>
<x:ActivePane>0</x:ActivePane>
<xanes>
<xane>
<x:Number>3</x:Number>
</xane>
<xane>
<x:Number>1</x:Number>
</xane>
<xane>
<x:Number>2</x:Number>
</xane>
<xane>
<x:Number>0</x:Number>
</xane>
</xanes>
<xrotectContents>False</xrotectContents>
<xrotectObjects>False</xrotectObjects>
<xrotectScenarios>False</xrotectScenarios>
</x:WorksheetOptions>