找回密码
 立即注册

QQ登录

只需一步,快速开始

wlp5402

银牌会员

51

主题

145

帖子

2828

积分

银牌会员

积分
2828

活字格认证

wlp5402
银牌会员   /  发表于:2012-3-29 12:24  /   查看:5841  /  回复:1
farpoint 4升级到farpoint 6后加列都加不到.以下是4.0时创建的代码.

<FarPoint:FpSpread ID="fpsMoneySource" runat="server" ActiveSheetViewIndex="0" BorderColor="Black"
                                                                BorderStyle="Solid" BorderWidth="1px" DesignString="<?xml version="1.0" encoding="utf-8"?><Spread />"
                                                                Height="200px" Width="842px">
                                                                <Sheets>
                                                                    <FarPoint:SheetView DesignString="<?xml version="1.0" encoding="utf-8"?><Sheet><Data><RowHeader class="FarPoint.Web.Spread.Model.DefaultSheetDataModel" rows="5" 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="7"><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.String">資金來源</Data></Cell><Cell row="0" column="1"><Data type="System.String">是否允許轉移</Data></Cell><Cell row="0" column="2"><Data type="System.String">資金來源類別</Data></Cell><Cell row="0" column="3"><Data type="System.String">貨幣</Data></Cell><Cell row="0" column="4"><Data type="System.String">匯率</Data></Cell><Cell row="0" column="5"><Data type="System.String">金額</Data></Cell><Cell row="0" column="6"><Data type="System.String">港幣金額</Data></Cell></Cells></ColumnHeader><DataArea class="FarPoint.Web.Spread.Model.DefaultSheetDataModel" rows="5" columns="7"><AutoCalculation>True</AutoCalculation><AutoGenerateColumns>True</AutoGenerateColumns><ReferenceStyle>A1</ReferenceStyle><Iteration>False</Iteration><MaximumIterations>1</MaximumIterations><MaximumChange>0.001</MaximumChange><SheetName>Sheet1</SheetName><Cells><Cell row="0" column="0"><Data type="System.String" whitespace="" /></Cell><Cell row="0" column="2"><Data type="System.String" whitespace="" /></Cell><Cell row="1" column="0"><Data type="System.String" whitespace="" /></Cell><Cell row="1" column="2"><Data type="System.String" whitespace="" /></Cell><Cell row="2" column="0"><Data type="System.String" whitespace="" /></Cell><Cell row="2" column="2"><Data type="System.String" whitespace="" /></Cell><Cell row="3" column="0"><Data type="System.String" whitespace="" /></Cell><Cell row="3" column="2"><Data type="System.String" whitespace="" /></Cell><Cell row="4" column="0"><Data type="System.String" whitespace="" /></Cell><Cell row="4" column="2"><Data type="System.String" whitespace="" /></Cell></Cells></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="7"><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>CustomSkin1</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><FlatRowHeader>False</FlatRowHeader><HeaderFontBold>True</HeaderFontBold><SelectionBackColor>#eaecf5</SelectionBackColor><SelectionForeColor>Empty</SelectionForeColor><EvenRowBackColor>Empty</EvenRowBackColor><OddRowBackColor>Empty</OddRowBackColor><ShowColumnHeader>True</ShowColumnHeader><ShowRowHeader>True</ShowRowHeader><ColumnHeaderBackground class="FarPoint.Web.Spread.Background"><BackgroundImageUrl>SPREADCLIENTPATH:/img/chbg.gif</BackgroundImageUrl><SelectedBackgroundImageUrl>SPREADCLIENTPATH:/img/chm.png</SelectedBackgroundImageUrl></ColumnHeaderBackground><SheetCornerBackground class="FarPoint.Web.Spread.Background"><BackgroundImageUrl>SPREADCLIENTPATH:/img/chm.png</BackgroundImageUrl></SheetCornerBackground><HeaderGrayAreaColor>#7999c2</HeaderGrayAreaColor></ActiveSkin><AxisModels><Column class="FarPoint.Web.Spread.Model.DefaultSheetAxisModel" orientation="Horizontal" count="7"><Items><Item index="-1"><SortIndicator>Ascending</SortIndicator></Item><Item index="0"><Size>200</Size></Item><Item index="1"><Size>100</Size></Item><Item index="2"><Size>100</Size></Item><Item index="3"><Size>120</Size></Item><Item index="4"><Size>120</Size></Item><Item index="5"><Size>120</Size></Item><Item index="6"><Size>120</Size></Item></Items></Column><RowHeaderColumn class="FarPoint.Web.Spread.Model.DefaultSheetAxisModel" defaultSize="40" orientation="Horizontal" count="1"><Items><Item index="-1"><Size>40</Size><SortIndicator>Ascending</SortIndicator></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="5" Columns="1"><AltRowCount>2</AltRowCount><DefaultStyle class="FarPoint.Web.Spread.NamedStyle" Parent="RowHeaderDefault"><Font><Bold>True</Bold><Italic>False</Italic><Overline>False</Overline><Strikeout>False</Strikeout><Underline>False</Underline></Font></DefaultStyle><ConditionalFormatCollections /></RowHeader><ColumnHeader class="FarPoint.Web.Spread.Model.DefaultSheetStyleModel" Rows="1" Columns="7"><AltRowCount>2</AltRowCount><DefaultStyle class="FarPoint.Web.Spread.NamedStyle" Parent="ColumnHeaderDefault"><Font><Bold>True</Bold><Italic>False</Italic><Overline>False</Overline><Strikeout>False</Strikeout><Underline>False</Underline></Font><Background class="FarPoint.Web.Spread.Background"><BackgroundImageUrl>SPREADCLIENTPATH:/img/chbg.gif</BackgroundImageUrl><SelectedBackgroundImageUrl>SPREADCLIENTPATH:/img/chm.png</SelectedBackgroundImageUrl></Background></DefaultStyle><ConditionalFormatCollections /></ColumnHeader><DataArea class="FarPoint.Web.Spread.Model.DefaultSheetStyleModel" Rows="5" Columns="7"><AltRowCount>2</AltRowCount><DefaultStyle class="FarPoint.Web.Spread.NamedStyle" Parent="DataAreaDefault" /><ColumnStyles><ColumnStyle Index="0"><CellType class="FarPoint.Web.Spread.ComboBoxCellType"><AutoPostBack>True</AutoPostBack><ShowButton>True</ShowButton><Items /></CellType><TabStop>True</TabStop></ColumnStyle><ColumnStyle Index="1"><CellType class="FarPoint.Web.Spread.TextCellType"><TextCellType /></CellType><TabStop>True</TabStop></ColumnStyle><ColumnStyle Index="2"><CellType class="FarPoint.Web.Spread.TextCellType"><TextCellType /></CellType><TabStop>True</TabStop></ColumnStyle><ColumnStyle Index="3"><CellType class="FarPoint.Web.Spread.TextCellType"><TextCellType /></CellType><TabStop>True</TabStop></ColumnStyle><ColumnStyle Index="4"><CellType class="FarPoint.Web.Spread.DoubleCellType"><ErrorMsg>Double: (ex, 1234.56)</ErrorMsg><AllowWrap>False</AllowWrap><IsDateFormat>False</IsDateFormat><GeneralCellType /><DecimalDigits>6</DecimalDigits><DoubleCellType /></CellType><TabStop>True</TabStop></ColumnStyle><ColumnStyle Index="5"><CellType class="FarPoint.Web.Spread.DoubleCellType"><ErrorMsg>Double: (ex, 1234.56)</ErrorMsg><AllowWrap>False</AllowWrap><IsDateFormat>False</IsDateFormat><GeneralCellType /><DecimalDigits>6</DecimalDigits><DoubleCellType /></CellType></ColumnStyle><ColumnStyle Index="6"><CellType class="FarPoint.Web.Spread.DoubleCellType"><ErrorMsg>Double: (ex, 1234.56)</ErrorMsg><AllowWrap>False</AllowWrap><IsDateFormat>False</IsDateFormat><GeneralCellType /><DecimalDigits>6</DecimalDigits><DoubleCellType /></CellType><TabStop>True</TabStop></ColumnStyle></ColumnStyles><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><Background class="FarPoint.Web.Spread.Background"><BackgroundImageUrl>SPREADCLIENTPATH:/img/chm.png</BackgroundImageUrl></Background></DefaultStyle><ConditionalFormatCollections /></SheetCorner><ColumnFooter class="FarPoint.Web.Spread.Model.DefaultSheetStyleModel" Rows="1" Columns="7"><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><Background class="FarPoint.Web.Spread.Background"><BackgroundImageUrl>SPREADCLIENTPATH:/img/chm.png</BackgroundImageUrl></Background></SheetCornerStyle><AllowLoadOnDemand>false</AllowLoadOnDemand><LoadRowIncrement >10</LoadRowIncrement ><LoadInitRowCount >30</LoadInitRowCount ><TopRow>0</TopRow><reviewRowStyle class="FarPoint.Web.Spread.PreviewRowInfo" /></Presentation><Settings><Name>Sheet1</Name><Categories><Appearance><GridLineColor>#d0d7e5</GridLineColor><BackColor>White</BackColor><SelectionBorder class="FarPoint.Web.Spread.Border" /><SelectionBackColor>White</SelectionBackColor></Appearance><Behavior><AllowInsert>True</AllowInsert><AllowDelete>True</AllowDelete></Behavior><Layout><RowHeaderColumnCount>1</RowHeaderColumnCount><ColumnCount>7</ColumnCount><ColumnHeaderRowCount>1</ColumnHeaderRowCount><RowCount>5</RowCount></Layout></Categories><ActiveRow>0</ActiveRow><ActiveColumn>3</ActiveColumn><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><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>#e7eff7</BackColor><HorizontalAlign>Right</HorizontalAlign></Style></TitleInfo><LayoutTemplate class="FarPoint.Web.Spread.LayoutTemplate"><Layout><ColumnCount>4</ColumnCount><RowCount>1</RowCount></Layout><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><AxisModels><LayoutColumn class="FarPoint.Web.Spread.Model.DefaultSheetAxisModel" orientation="Horizontal" count="4"><Items><Item index="-1"><SortIndicator>Ascending</SortIndicator></Item></Items></LayoutColumn><LayoutRow class="FarPoint.Web.Spread.Model.DefaultSheetAxisModel" orientation="Vertical" count="1"><Items><Item index="-1" /></Items></LayoutRow></AxisModels></LayoutTemplate><LayoutMode>CellLayoutMode</LayoutMode></Settings></Sheet>"
                                                                        GridLineColor="#D0D7E5" SelectionBackColor="White" SheetName="Sheet1" BackColor="White"
                                                                        AllowDelete="True" AllowInsert="True">
                                                                    </FarPoint:SheetView>
                                                                </Sheets>
                                                                <TitleInfo BackColor="#E7EFF7" ForeColor="" HorizontalAlign="Center" VerticalAlign="NotSet"
                                                                    Font-Size="X-Large" Font-Bold="False" Font-Italic="False" Font-Overline="False"
                                                                    Font-Strikeout="False" Font-Underline="False">
                                                                </TitleInfo>
                                                                <HierBar Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                                    Font-Underline="False" />
                                                                <ager Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
                                                                    Font-Underline="False" />
                                                                <CommandBar BackColor="Control">
                                                                    <Background BackgroundImageUrl="SPREADCLIENTPATH:/img/cbbg.gif"></Background>
                                                                </CommandBar>
                                                            </FarPoint:FpSpread>

1 个回复

倒序浏览
iceman
社区贡献组   /  发表于:2012-3-29 16:22:00
沙发

回复 1# wlp5402 的帖子

wlp5402 你好,

感谢 wlp5402 把问题反馈给我们,根据目前信息无法重现问题。
楼主能否制作使用 Spread for ASP.NET 4.0 升级到 6.0 出错的 Demo 上传到论坛,便于调试、解决问题。
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 立即注册
返回顶部