微软xml excel - 行格式化 [英] microsoft xml excel - row formatting

查看:186
本文介绍了微软xml excel - 行格式化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Microsoft XML Excel与ColdFusion在Excel表单上显示我的查询结果。我正在使用多个工作表。我看到有一个边框样式属性可用。有没有办法为行和其他样式设置背景颜色。我没有看到有关如何执行所有这些的良好文档。

I am using Microsoft XML Excel with ColdFusion to display my query results on Excel sheet. I am using multiple worksheets. I see there is a border style property available. is there a way I can set background color for rows and other styles. I don't see good documentation on how to do all these.

谢谢

推荐答案

请参阅 Excel中的XML和电子表格组件为完整的文档。但是,通常有助于创建一个电子表格,将其保存为* .xml并查看输出。示例:

See XML in Excel and the Spreadsheet Component for the full documentation. But it often helps to just create a spreadsheet, save it as *.xml and review the output. Example:

... 
<Styles>
  <Style ss:ID="s23">
   <Interior ss:Color="#800080" ss:Pattern="Solid"/>
  </Style>
  <Style ss:ID="s24">
   <Interior ss:Color="#0000FF" ss:Pattern="Solid"/>
  </Style>
 </Styles>
 <Worksheet ss:Name="Sheet1">
  <Table ss:ExpandedColumnCount="1" ss:ExpandedRowCount="3" x:FullColumns="1"
   x:FullRows="1">
   <Row>
    <Cell ss:StyleID="s23"><Data ss:Type="String">apple</Data></Cell>
   </Row>
   <Row>
    <Cell ss:StyleID="s24"><Data ss:Type="String">orange</Data></Cell>
   </Row>
  </Table>
 </Worksheet>
  ...

这篇关于微软xml excel - 行格式化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆