[DevExpress.AspxGridViewExporter]导出pdf文件的样式设置

 库版本10.2.2.8css

  
  
           
  
  
  1. <dx:ASPxGridViewExporter ID="ASPxgveOperationHistory" PaperKind="Custom" BottomMargin="0" TopMargin="10" LeftMargin="10" RightMargin="0" MaxColumnWidth="200" Landscape="true" GridViewID="agvOperationHistory" runat="server"> 
  2.       <Styles> 
  3.           <Cell Font-Size="7px" BackColor="#fffff0" ForeColor="#000000" Font-Names="Arial" VerticalAlign="Top" /> 
  4.           <AlternatingRowCell BackColor="#feae30" /> 
  5.           <Default BorderWidth="0" Font-Size="7px" Wrap="False" BackColor="Red" VerticalAlign="Top" /> 
  6.           <Header BackColor="#feae30" Font-Size="8px" ForeColor="#000000" Font-Names="Arial" Font-Bold="false" /> 
  7.       </Styles>               
  8. </dx:ASPxGridViewExporter> 

存在的问题:ide

1.可控制样式不是不少,相比css.
spa

控件不支持主题设置,因此每一个控件须要单独设置样式。server

2.导出的grid若是表列太多的话,会跨多个页,没法彻底在一行显示(难道考虑打印?)xml

3.暂时不知道border颜色怎么设置,默认灰色的。it

4.设置交替行怎么没起做用。难道不是这样用?io

相关文章
相关标签/搜索