本帖最后由 yzs5661 于 2016-9-21 11:58 编辑
这样设置后表格实际高度显示不正常,这个是在ifream中的表
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RptFileOpen.aspx.cs" Inherits="HWProjectNew.general6.ProjectRpt.ReportBase.RptFileOpen" %>
<%@ Register Assembly="FarPoint.Web.Spread, Version=9.40.20161.0, Culture=neutral, PublicKeyToken=327c3516b1b18457" Namespace="FarPoint.Web.Spread" TagPrefix="FarPoint" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script>
//<%=RptFile %>
</script>
<style>
html,body{
height:100%;
}
#form1{
height:100%;
}
#FpSpread1 {
width: 100%;
height:90%;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<div class="page-content">
<!--<p>报表文件名:<%=RptFile %></p>-->
<div class="content">
<FarPoint:FpSpread ID="FpSpread1" runat="server" BorderColor="#A0A0A0" BorderStyle="Solid" BorderWidth="1px" ActiveSheetViewIndex="0" ClientAutoSize="True" currentPageIndex="0" DesignString="<?xml version="1.0" encoding="utf-8"?><Spread />" EditModeReplace="True">
<TouchInfo SelectionGripperLineColor=""></TouchInfo>
<Tab ScrollIncrement="1" TabControlPolicy="Always" VisibleCount="1" />
<CommandBar BackColor="#F6F6F6" ButtonFaceColor="Control" ButtonHighlightColor="ControlLightLight" ButtonShadowColor="ControlDark">
<Background BackgroundImageUrl="SPREADCLIENTPATH:/img/cbbg.gif"></Background>
</CommandBar>
<ager PageCount="50" />
<Sheets>
<FarPoint:SheetView SheetName="Sheet1" AllowPage="False" DesignString="<?xml version="1.0" encoding="utf-8"?><Sheet><Data><RowHeader class="FarPoint.Web.Spread.Model.DefaultSheetDataModel" rows="3" columns="1"><AutoCalculation>True</AutoCalculation><AutoGenerateColumns>True</AutoGenerateColumns><ReferenceStyle>A1</ReferenceStyle><Iteration>False</Iteration><MaximumIterations>1</MaximumIterations><MaximumChange>0.001</MaximumChange></RowHeader><ColumnHeader class="FarPoint.Web.Spread.Model.DefaultSheetDataModel" rows="1" columns="4"><AutoCalculation>True</AutoCalculation><AutoGenerateColumns>True</AutoGenerateColumns><ReferenceStyle>A1</ReferenceStyle><Iteration>False</Iteration><MaximumIterations>1</MaximumIterations><MaximumChange>0.001</MaximumChange></ColumnHeader><DataArea class="FarPoint.Web.Spread.Model.DefaultSheetDataModel" rows="3" columns="4"><AutoCalculation>True</AutoCalculation><AutoGenerateColumns>True</AutoGenerateColumns><ReferenceStyle>A1</ReferenceStyle><Iteration>False</Iteration><MaximumIterations>1</MaximumIterations><MaximumChange>0.001</MaximumChange><SheetName>Sheet1</SheetName></DataArea><SheetCorner class="FarPoint.Web.Spread.Model.DefaultSheetDataModel" rows="1" columns="1"><AutoCalculation>True</AutoCalculation><AutoGenerateColumns>True</AutoGenerateColumns><ReferenceStyle>A1</ReferenceStyle><Iteration>False</Iteration><MaximumIterations>1</MaximumIterations><MaximumChange>0.001</MaximumChange></SheetCorner><ColumnFooter class="FarPoint.Web.Spread.Model.DefaultSheetDataModel" rows="1" columns="4"><AutoCalculation>True</AutoCalculation><AutoGenerateColumns>True</AutoGenerateColumns><ReferenceStyle>A1</ReferenceStyle><Iteration>False</Iteration><MaximumIterations>1</MaximumIterations><MaximumChange>0.001</MaximumChange></ColumnFooter></Data><resentation><ActiveSkin class="FarPoint.Web.Spread.SheetSkin"><Name>Default</Name><BackColor>Empty</BackColor><CellBackColor>Empty</CellBackColor><CellForeColor>Empty</CellForeColor><CellSpacing>0</CellSpacing><GridLines>Both</GridLines><GridLineColor>#d0d7e5</GridLineColor><HeaderBackColor>Empty</HeaderBackColor><HeaderForeColor>Empty</HeaderForeColor><FlatColumnHeader>False</FlatColumnHeader><FooterBackColor>Empty</FooterBackColor><FooterForeColor>Empty</FooterForeColor><FlatColumnFooter>False</FlatColumnFooter><FlatRowHeader>False</FlatRowHeader><HeaderFontBold>False</HeaderFontBold><FooterFontBold>False</FooterFontBold><SelectionBackColor>#eaecf5</SelectionBackColor><SelectionForeColor>Empty</SelectionForeColor><EvenRowBackColor>Empty</EvenRowBackColor><OddRowBackColor>Empty</OddRowBackColor><ShowColumnHeader>True</ShowColumnHeader><ShowColumnFooter>False</ShowColumnFooter><ShowRowHeader>True</ShowRowHeader><ColumnHeaderBackground class="FarPoint.Web.Spread.Background"><BackgroundImageUrl>SPREADCLIENTPATH:/img/chm.png</BackgroundImageUrl></ColumnHeaderBackground><HeaderGrayAreaColor>#fafafa</HeaderGrayAreaColor><FilterBarBackColor>Empty</FilterBarBackColor><FilterBarForeColor>Empty</FilterBarForeColor><FilterBarHeaderBackColor>Empty</FilterBarHeaderBackColor><FilterBarHeaderForeColor>Empty</FilterBarHeaderForeColor><ShowFilterBar>False</ShowFilterBar><FilterBarHeaderParent>RowHeaderDefault</FilterBarHeaderParent><FilterBarParent>FilterBarDefault</FilterBarParent></ActiveSkin><AxisModels><Column class="FarPoint.Web.Spread.Model.DefaultSheetAxisModel" orientation="Horizontal" count="4"><Items><Item index="-1"><SortIndicator>Ascending</SortIndicator></Item></Items></Column><RowHeaderColumn class="FarPoint.Web.Spread.Model.DefaultSheetAxisModel" defaultSize="40" orientation="Horizontal" count="1"><Items><Item index="-1"><SortIndicator>Ascending</SortIndicator><Size>40</Size></Item></Items></RowHeaderColumn><ColumnHeaderRow class="FarPoint.Web.Spread.Model.DefaultSheetAxisModel" defaultSize="22" orientation="Vertical" count="1"><Items><Item index="-1"><Size>22</Size></Item></Items></ColumnHeaderRow><ColumnFooterRow class="FarPoint.Web.Spread.Model.DefaultSheetAxisModel" defaultSize="22" orientation="Vertical" count="1"><Items><Item index="-1"><Size>22</Size></Item></Items></ColumnFooterRow></AxisModels><StyleModels><RowHeader class="FarPoint.Web.Spread.Model.DefaultSheetStyleModel" Rows="3" Columns="1"><AltRowCount>2</AltRowCount><DefaultStyle class="FarPoint.Web.Spread.NamedStyle" Parent="RowHeaderDefault" /><ConditionalFormatCollections /></RowHeader><ColumnHeader class="FarPoint.Web.Spread.Model.DefaultSheetStyleModel" Rows="1" Columns="4"><AltRowCount>2</AltRowCount><DefaultStyle class="FarPoint.Web.Spread.NamedStyle" Parent="ColumnHeaderDefault"><Background class="FarPoint.Web.Spread.Background"><BackgroundImageUrl>SPREADCLIENTPATH:/img/chm.png</BackgroundImageUrl></Background></DefaultStyle><ConditionalFormatCollections /></ColumnHeader><DataArea class="FarPoint.Web.Spread.Model.DefaultSheetStyleModel" Rows="3" Columns="4"><AltRowCount>2</AltRowCount><DefaultStyle class="FarPoint.Web.Spread.NamedStyle" Parent="DataAreaDefault" /><ConditionalFormatCollections /></DataArea><SheetCorner class="FarPoint.Web.Spread.Model.DefaultSheetStyleModel" Rows="1" Columns="1"><AltRowCount>2</AltRowCount><DefaultStyle class="FarPoint.Web.Spread.NamedStyle" Parent="CornerDefault"><Border class="FarPoint.Web.Spread.Border" Size="1" Style="Solid"><Bottom Color="ControlDark" /><Left Size="0" /><Right Color="ControlDark" /><Top Size="0" /></Border></DefaultStyle><ConditionalFormatCollections /></SheetCorner><ColumnFooter class="FarPoint.Web.Spread.Model.DefaultSheetStyleModel" Rows="1" Columns="4"><AltRowCount>2</AltRowCount><DefaultStyle class="FarPoint.Web.Spread.NamedStyle" Parent="ColumnFooterDefault" /><ConditionalFormatCollections /></ColumnFooter></StyleModels><MessageRowStyle class="FarPoint.Web.Spread.Appearance"><BackColor>LightYellow</BackColor><ForeColor>Red</ForeColor></MessageRowStyle><SheetCornerStyle class="FarPoint.Web.Spread.NamedStyle" Parent="CornerDefault"><Border class="FarPoint.Web.Spread.Border" Size="1" Style="Solid"><Bottom Color="ControlDark" /><Left Size="0" /><Right Color="ControlDark" /><Top Size="0" /></Border></SheetCornerStyle><AllowLoadOnDemand>false</AllowLoadOnDemand><LoadRowIncrement >10</LoadRowIncrement ><LoadInitRowCount >30</LoadInitRowCount ><LoadOnDemandMode >Standard</LoadOnDemandMode ><LoadOnDemandInterval >500</LoadOnDemandInterval ><LoadOnDemandTriggerMode >Timed</LoadOnDemandTriggerMode ><LoadOffsetFromBottom >0</LoadOffsetFromBottom ><AllowVirtualScrollPaging>false</AllowVirtualScrollPaging><VirtualScrollPagingPrevRowCount>0</VirtualScrollPagingPrevRowCount><VirtualScrollPagingFormatString>第{page}页 共{count}页</VirtualScrollPagingFormatString><TopRow>0</TopRow><reviewRowStyle class="FarPoint.Web.Spread.PreviewRowInfo" /><FilterBar class="FarPoint.Web.Spread.FilterBar"><Height>22</Height><IndicatorCssClass /><Style class="FarPoint.Web.Spread.Model.DefaultSheetStyleModel" Rows="2" Columns="4"><AltRowCount>2</AltRowCount><RowStyles><RowStyle Index="0" class="FarPoint.Web.Spread.FilterBarStyleInfo" Parent="FilterBarDefault" /><RowStyle Index="1" class="FarPoint.Web.Spread.FilterBarStyleInfo" Parent="RowHeaderDefault" /></RowStyles><ConditionalFormatCollections /></Style></FilterBar></Presentation><Settings><Name>Sheet1</Name><Categories><Appearance><GridLineColor>#d0d7e5</GridLineColor><SelectionBackColor>#eaecf5</SelectionBackColor><SelectionBorder class="FarPoint.Web.Spread.Border" /></Appearance><Behavior><EditTemplateColumnCount>2</EditTemplateColumnCount><GroupBarText>拖放一个列以便按照该列进行分组。</GroupBarText><AllowPage>False</AllowPage></Behavior><Layout><ColumnHeaderRowCount>1</ColumnHeaderRowCount><RowHeaderColumnCount>1</RowHeaderColumnCount></Layout></Categories><ColumnHeaderRowCount>1</ColumnHeaderRowCount><ColumnFooterRowCount>1</ColumnFooterRowCount><rintInfo><Header /><Footer /><ZoomFactor>0</ZoomFactor><FirstPageNumber>1</FirstPageNumber><Orientation>Auto</Orientation><rintType>All</PrintType><ageOrder>Auto</PageOrder><BestFitCols>False</BestFitCols><BestFitRows>False</BestFitRows><ageStart>-1</PageStart><ageEnd>-1</PageEnd><ColStart>-1</ColStart><ColEnd>-1</ColEnd><RowStart>-1</RowStart><RowEnd>-1</RowEnd><ShowBorder>True</ShowBorder><ShowGrid>True</ShowGrid><ShowColor>True</ShowColor><ShowColumnHeader>Inherit</ShowColumnHeader><ShowRowHeader>Inherit</ShowRowHeader><ShowFilterBar>Inherit</ShowFilterBar><ShowColumnFooter>Inherit</ShowColumnFooter><ShowColumnFooterEachPage>True</ShowColumnFooterEachPage><ShowTitle>True</ShowTitle><ShowSubtitle>True</ShowSubtitle><UseMax>True</UseMax><UseSmartPrint>False</UseSmartPrint><Opacity>255</Opacity><rintNotes>None</PrintNotes><Centering>None</Centering><RepeatColStart>-1</RepeatColStart><RepeatColEnd>-1</RepeatColEnd><RepeatRowStart>-1</RepeatRowStart><RepeatRowEnd>-1</RepeatRowEnd><SmartPrintPagesTall>1</SmartPrintPagesTall><SmartPrintPagesWide>1</SmartPrintPagesWide><HeaderHeight>-1</HeaderHeight><FooterHeight>-1</FooterHeight></PrintInfo><TitleInfo class="FarPoint.Web.Spread.TitleInfo"><Style class="FarPoint.Web.Spread.StyleInfo"><BackColor>White</BackColor><HorizontalAlign>Right</HorizontalAlign></Style></TitleInfo><WorksheetTemplate class="FarPoint.Web.Spread.WorksheetTemplate"><Layout><ColumnCount>4</ColumnCount></Layout><AxisModels><LayoutColumn class="FarPoint.Web.Spread.Model.DefaultSheetAxisModel" orientation="Horizontal" count="4"><Items><Item index="-1"><SortIndicator>Ascending</SortIndicator></Item></Items></LayoutColumn></AxisModels><Data><LayoutData class="FarPoint.Web.Spread.Model.DefaultSheetDataModel" rows="1" columns="4"><AutoCalculation>True</AutoCalculation><AutoGenerateColumns>True</AutoGenerateColumns><ReferenceStyle>A1</ReferenceStyle><Iteration>False</Iteration><MaximumIterations>1</MaximumIterations><MaximumChange>0.001</MaximumChange><Cells><Cell row="0" column="0"><Data type="System.Int32">0</Data></Cell><Cell row="0" column="1"><Data type="System.Int32">1</Data></Cell><Cell row="0" column="2"><Data type="System.Int32">2</Data></Cell><Cell row="0" column="3"><Data type="System.Int32">3</Data></Cell></Cells></LayoutData></Data></WorksheetTemplate><LayoutMode>CellLayoutMode</LayoutMode><AutoFilterMode>FilterGadget</AutoFilterMode><CurrentPageIndex type="System.Int32">0</CurrentPageIndex></Settings></Sheet>">
</FarPoint:SheetView>
</Sheets>
<TouchStrips>
<FarPoint:TouchStrip Area="Chart" NoTouchStrip="True"></FarPoint:TouchStrip>
</TouchStrips>
<TitleInfo BackColor="White" ForeColor="" HorizontalAlign="Center" VerticalAlign="NotSet" Font-Size="X-Large"></TitleInfo>
</FarPoint:FpSpread>
</div>
</div>
<aspiteral ID="litMessage" runat="server"></aspiteral>
</form>
</body>
</html>
|