随笔分类 - C#
摘要:在VS2010中调用COMInteropDLL操作Excel通过get_Range去获取Range时,会发生Objectdoesnotcontainadefinitionforget_Range的错误。其原因和解决方案:Misha'sexplanationiscorrect-whenusingNoPIA,methodsreturningobjectaretreatedasiftheyreturndynamicinordertosimulatetheVBAsemanticsofCOMVariants.Becausethereturnvalueofsh.CellsisObject,sh.g
阅读全文
摘要:http://www.doc88.com/p-468115299330.html
阅读全文

浙公网安备 33010602011771号