+ TargetSite {System.Object CreateObject(System.String, System.String)} System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo} Cannot call method System.Reflection.MemberInfo.get_CustomAttributes in this context. ________________________________________________________________________ IDE: Visual Studio / VB.net --------------------------------------------------------------------- Imports System.Reflection Imports System.Reflection.MethodBase Imports Excel = Microsoft.Office.Interop.Excel Imports System.Runtime.InteropServices Public Class ResumenFin . . . . . Private Sub PrepareResumenXLSX() Dim MiLibro As Excel.Application Dim objBooks As Excel.Workbook MiLibro = CreateObject("Excel.Application") <== exception ocurrs in runtime . . . . . End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)