我在activexform中用formulaone6做报表,但是遇到一个问题,在IE7中使用IF1CellFormat时总是报错,在IE6中就没有这个问题。代码如下:
procedure TActiveFormX111.cbbFontNameChange(Sender: TObject);
var
CellFormat:IF1CellFormat;
begin
CellFormat := FormulaOne1.GetCellFormat;
CellFormat.FontName := cbbFontName.FontName;
FormulaOne1.SetCellFormat(CellFormat);
end;上边的代码是修改单元的字体。CellFormat := FormulaOne1.GetCellFormat;这句没有错误,到CellFormat.FontName := cbbFontName.FontName;就出错了。有那位高手遇到过?
procedure TActiveFormX111.cbbFontNameChange(Sender: TObject);
var
CellFormat:IF1CellFormat;
begin
CellFormat := FormulaOne1.GetCellFormat;
CellFormat.FontName := cbbFontName.FontName;
FormulaOne1.SetCellFormat(CellFormat);
end;上边的代码是修改单元的字体。CellFormat := FormulaOne1.GetCellFormat;这句没有错误,到CellFormat.FontName := cbbFontName.FontName;就出错了。有那位高手遇到过?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货