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/>
<x
oNotDisplayGridlines/>
<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>
<x
anes>
<x
ane>
<x:Number>3</x:Number>
</x
ane>
<x
ane>
<x:Number>1</x:Number>
</x
ane>
<x
ane>
<x:Number>2</x:Number>
</x
ane>
<x
ane>
<x:Number>0</x:Number>
</x
ane>
</x
anes>
<x
rotectContents>False</x
rotectContents>
<x
rotectObjects>False</x
rotectObjects>
<x
rotectScenarios>False</x
rotectScenarios>
</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/>
<x

<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>
<x

<x

<x:Number>3</x:Number>
</x

<x

<x:Number>1</x:Number>
</x

<x

<x:Number>2</x:Number>
</x

<x

<x:Number>0</x:Number>
</x

</x

<x


<x


<x


</x:WorksheetOptions>