Пример #1
0
        public Int32 AfterXmlExport(NetOffice.ExcelApi.XmlMap map, string url, NetOffice.ExcelApi.Enums.XlXmlExportResult result)
        {
            object[] paramsArray = Invoker.ValidateParamsArray(map, url, result);
            object   returnItem  = Invoker.MethodReturn(this, "AfterXmlExport", paramsArray);

            return(NetRuntimeSystem.Convert.ToInt32(returnItem));
        }
Пример #2
0
        public virtual NetOffice.ExcelApi.Enums.XlXmlExportResult ExportXml(out string data)
        {
            ParameterModifier[] modifiers = Invoker.CreateParamModifiers(true);
            data = string.Empty;
            object[] paramsArray = new object[] { data };

            NetOffice.ExcelApi.Enums.XlXmlExportResult returnItem =
                InvokerService.InvokeInternal.ExecuteEnumMethodGetExtended <NetOffice.ExcelApi.Enums.XlXmlExportResult>(this, "ExportXml", paramsArray, modifiers);

            data = paramsArray[0] as string;
            return(returnItem);
        }
Пример #3
0
        public void AfterXmlExport([In, MarshalAs(UnmanagedType.IDispatch)] object map, [In] object url, [In] object result)
        {
            if (!Validate("AfterXmlExport"))
            {
                Invoker.ReleaseParamsArray(map, url, result);
                return;
            }

            NetOffice.ExcelApi.XmlMap newMap = Factory.CreateKnownObjectFromComProxy <NetOffice.ExcelApi.XmlMap>(EventClass, map, NetOffice.ExcelApi.XmlMap.LateBindingApiWrapperType);
            string newUrl = ToString(url);

            NetOffice.ExcelApi.Enums.XlXmlExportResult newResult = (NetOffice.ExcelApi.Enums.XlXmlExportResult)result;
            object[] paramsArray = new object[3];
            paramsArray[0] = newMap;
            paramsArray[1] = newUrl;
            paramsArray[2] = newResult;
            EventBinding.RaiseCustomEvent("AfterXmlExport", ref paramsArray);
        }
Пример #4
0
        public void AfterXmlExport([In, MarshalAs(UnmanagedType.IDispatch)] object map, [In] object url, [In] object result)
        {
            Delegate[] recipients = _eventBinding.GetEventRecipients("AfterXmlExport");
            if ((true == _eventClass.IsCurrentlyDisposing) || (recipients.Length == 0))
            {
                Invoker.ReleaseParamsArray(map, url, result);
                return;
            }

            NetOffice.ExcelApi.XmlMap newMap = NetOffice.Factory.CreateObjectFromComProxy(_eventClass, map) as NetOffice.ExcelApi.XmlMap;
            string newUrl = Convert.ToString(url);

            NetOffice.ExcelApi.Enums.XlXmlExportResult newResult = (NetOffice.ExcelApi.Enums.XlXmlExportResult)result;
            object[] paramsArray = new object[3];
            paramsArray[0] = newMap;
            paramsArray[1] = newUrl;
            paramsArray[2] = newResult;
            _eventBinding.RaiseCustomEvent("AfterXmlExport", ref paramsArray);
        }
Пример #5
0
 public Int32 AfterXmlExport(NetOffice.ExcelApi.XmlMap map, string url, NetOffice.ExcelApi.Enums.XlXmlExportResult result)
 {
     return(Factory.ExecuteInt32MethodGet(this, "AfterXmlExport", map, url, result));
 }
Пример #6
0
 public virtual Int32 WorkbookAfterXmlExport(NetOffice.ExcelApi.Workbook wb, NetOffice.ExcelApi.XmlMap map, string url, NetOffice.ExcelApi.Enums.XlXmlExportResult result)
 {
     return(InvokerService.InvokeInternal.ExecuteInt32MethodGet(this, "WorkbookAfterXmlExport", wb, map, url, result));
 }