在C#中使用OWC11 对Spreadsheet 中的Range设定边框。但总是报LineStyle 错误,命名有这个属性啊。
但是根据错误提示Border根本没有set_LineStyle 方法。
那位大侠能偶指点一下。谢谢啊!在线等,急~~~~~~~using OWC = Microsoft.Office.Interop.Owc11;m_sheet.get_Range(m_sheet.Cells[1, 1], m_sheet.Cells[1, 10]).Borders[OWC.XlBordersIndex.xlEdgeBottom].LineStyle= OWC.XlLineStyle.xlContinuous;VS 2005 编译错误提示:
Error 3 Property, indexer, or event 'LineStyle' is not supported by the language; 
try directly calling accessor methods 'Microsoft.Office.Interop.Owc11.Border.get_LineStyle()' or 'Microsoft.Office.Interop.Owc11.Border.set_LineStyle(Microsoft.Office.Interop.Owc11.XlLineStyle)'