DoGetCellFont在C#中的问题
各位老大,我用的cell3.14,在C#的winform中,调用DoGetCellFont为什么会提示我Type mismatch这个com+的错误?代码如下:
object size=9,style=0;
object name = "宋体";
cell.DoGetCellFont(cell.DoGetCurrentCol(),cell.DoGetCurrentRow(),ref size,ref style,ref name);
执行完上面这句,就throw出来一个exception。DoGetCellFont的原型是:
short DoGetCellFont(long col, long row, VARIANT FAR* size, VARIANT FAR* style, VARIANT FAR* name)
请兄弟们救命啊!