Exemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="doc"></param>
        public void MailMergeWizardFollowUpCustom([In, MarshalAs(UnmanagedType.IDispatch)] object doc)
        {
            if (!Validate("MailMergeWizardFollowUpCustom"))
            {
                Invoker.ReleaseParamsArray(doc);
                return;
            }

            NetOffice.PublisherApi._Document newDoc = Factory.CreateEventArgumentObjectFromComProxy(EventClass, doc) as NetOffice.PublisherApi._Document;
            object[] paramsArray = new object[1];
            paramsArray[0] = newDoc;
            EventBinding.RaiseCustomEvent("MailMergeWizardFollowUpCustom", ref paramsArray);
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="doc"></param>
        public void AfterPrint([In, MarshalAs(UnmanagedType.IDispatch)] object doc)
        {
            if (!Validate("AfterPrint"))
            {
                Invoker.ReleaseParamsArray(doc);
                return;
            }

            NetOffice.PublisherApi._Document newDoc = Factory.CreateKnownObjectFromComProxy <NetOffice.PublisherApi._Document>(EventClass, doc, typeof(NetOffice.PublisherApi._Document));
            object[] paramsArray = new object[1];
            paramsArray[0] = newDoc;
            EventBinding.RaiseCustomEvent("AfterPrint", ref paramsArray);
        }
Exemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="doc"></param>
        /// <param name="fromState"></param>
        public void MailMergeWizardStateChange([In, MarshalAs(UnmanagedType.IDispatch)] object doc, [In] object fromState)
        {
            if (!Validate("MailMergeWizardStateChange"))
            {
                Invoker.ReleaseParamsArray(doc, fromState);
                return;
            }

            NetOffice.PublisherApi._Document newDoc = Factory.CreateEventArgumentObjectFromComProxy(EventClass, doc) as NetOffice.PublisherApi._Document;
            Int32 newFromState = ToInt32(fromState);

            object[] paramsArray = new object[2];
            paramsArray[0] = newDoc;
            paramsArray[1] = newFromState;
            EventBinding.RaiseCustomEvent("MailMergeWizardStateChange", ref paramsArray);
        }
Exemplo n.º 4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="doc"></param>
        /// <param name="handled"></param>
        public void MailMergeDataSourceValidate([In, MarshalAs(UnmanagedType.IDispatch)] object doc, [In][Out] ref object handled)
        {
            if (!Validate("MailMergeDataSourceValidate"))
            {
                Invoker.ReleaseParamsArray(doc, handled);
                return;
            }

            NetOffice.PublisherApi._Document newDoc = Factory.CreateEventArgumentObjectFromComProxy(EventClass, doc) as NetOffice.PublisherApi._Document;
            object[] paramsArray = new object[2];
            paramsArray[0] = newDoc;
            paramsArray.SetValue(handled, 1);
            EventBinding.RaiseCustomEvent("MailMergeDataSourceValidate", ref paramsArray);

            handled = ToBoolean(paramsArray[1]);
        }
Exemplo n.º 5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="doc"></param>
        /// <param name="cancel"></param>
        public void BeforePrint([In, MarshalAs(UnmanagedType.IDispatch)] object doc, [In][Out] ref object cancel)
        {
            if (!Validate("BeforePrint"))
            {
                Invoker.ReleaseParamsArray(doc, cancel);
                return;
            }

            NetOffice.PublisherApi._Document newDoc = Factory.CreateEventArgumentObjectFromComProxy(EventClass, doc) as NetOffice.PublisherApi._Document;
            object[] paramsArray = new object[2];
            paramsArray[0] = newDoc;
            paramsArray.SetValue(cancel, 1);
            EventBinding.RaiseCustomEvent("BeforePrint", ref paramsArray);

            cancel = ToBoolean(paramsArray[1]);
        }
Exemplo n.º 6
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="doc"></param>
        /// <param name="bstrString"></param>
        public void MailMergeGenerateBarcode([In, MarshalAs(UnmanagedType.IDispatch)] object doc, [In][Out] ref object bstrString)
        {
            if (!Validate("MailMergeGenerateBarcode"))
            {
                Invoker.ReleaseParamsArray(doc, bstrString);
                return;
            }

            NetOffice.PublisherApi._Document newDoc = Factory.CreateEventArgumentObjectFromComProxy(EventClass, doc) as NetOffice.PublisherApi._Document;
            object[] paramsArray = new object[2];
            paramsArray[0] = newDoc;
            paramsArray.SetValue(bstrString, 1);
            EventBinding.RaiseCustomEvent("MailMergeGenerateBarcode", ref paramsArray);

            bstrString = ToString(paramsArray[1]);
        }
Exemplo n.º 7
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="doc"></param>
        /// <param name="startRecord"></param>
        /// <param name="endRecord"></param>
        /// <param name="cancel"></param>
        public void MailMergeBeforeMerge([In, MarshalAs(UnmanagedType.IDispatch)] object doc, [In] object startRecord, [In] object endRecord, [In][Out] ref object cancel)
        {
            if (!Validate("MailMergeBeforeMerge"))
            {
                Invoker.ReleaseParamsArray(doc, startRecord, endRecord, cancel);
                return;
            }

            NetOffice.PublisherApi._Document newDoc = Factory.CreateEventArgumentObjectFromComProxy(EventClass, doc) as NetOffice.PublisherApi._Document;
            Int32 newStartRecord = ToInt32(startRecord);
            Int32 newEndRecord   = ToInt32(endRecord);

            object[] paramsArray = new object[4];
            paramsArray[0] = newDoc;
            paramsArray[1] = newStartRecord;
            paramsArray[2] = newEndRecord;
            paramsArray.SetValue(cancel, 3);
            EventBinding.RaiseCustomEvent("MailMergeBeforeMerge", ref paramsArray);

            cancel = ToBoolean(paramsArray[3]);
        }
Exemplo n.º 8
0
 public void AfterPrint(NetOffice.PublisherApi._Document doc)
 {
     Factory.ExecuteMethod(this, "AfterPrint", doc);
 }
Exemplo n.º 9
0
 public void BeforePrint(NetOffice.PublisherApi._Document doc, bool cancel)
 {
     Factory.ExecuteMethod(this, "BeforePrint", doc, cancel);
 }
Exemplo n.º 10
0
 public void MailMergeWizardFollowUpCustom(NetOffice.PublisherApi._Document doc)
 {
     Factory.ExecuteMethod(this, "MailMergeWizardFollowUpCustom", doc);
 }
Exemplo n.º 11
0
 public void MailMergeBeforeMerge(NetOffice.PublisherApi._Document doc, Int32 startRecord, Int32 endRecord, bool cancel)
 {
     Factory.ExecuteMethod(this, "MailMergeBeforeMerge", doc, startRecord, endRecord, cancel);
 }
Exemplo n.º 12
0
 public void MailMergeInsertBarcode(NetOffice.PublisherApi._Document doc, bool okToInsert)
 {
     Factory.ExecuteMethod(this, "MailMergeInsertBarcode", doc, okToInsert);
 }
Exemplo n.º 13
0
 public void MailMergeDataSourceValidate(NetOffice.PublisherApi._Document doc, bool handled)
 {
     Factory.ExecuteMethod(this, "MailMergeDataSourceValidate", doc, handled);
 }
Exemplo n.º 14
0
 public void MailMergeWizardStateChange(NetOffice.PublisherApi._Document doc, Int32 fromState)
 {
     Factory.ExecuteMethod(this, "MailMergeWizardStateChange", doc, fromState);
 }
Exemplo n.º 15
0
 public void MailMergeDataSourceLoad(NetOffice.PublisherApi._Document doc)
 {
     Factory.ExecuteMethod(this, "MailMergeDataSourceLoad", doc);
 }
Exemplo n.º 16
0
 public void MailMergeBeforeRecordMerge(NetOffice.PublisherApi._Document doc, bool cancel)
 {
     Factory.ExecuteMethod(this, "MailMergeBeforeRecordMerge", doc, cancel);
 }
Exemplo n.º 17
0
 public void DocumentBeforeClose(NetOffice.PublisherApi._Document doc, bool cancel)
 {
     Factory.ExecuteMethod(this, "DocumentBeforeClose", doc, cancel);
 }
Exemplo n.º 18
0
 public void MailMergeRecipientListClose(NetOffice.PublisherApi._Document doc)
 {
     Factory.ExecuteMethod(this, "MailMergeRecipientListClose", doc);
 }
Exemplo n.º 19
0
 public void MailMergeAfterRecordMerge(NetOffice.PublisherApi._Document doc)
 {
     Factory.ExecuteMethod(this, "MailMergeAfterRecordMerge", doc);
 }
Exemplo n.º 20
0
 public void MailMergeGenerateBarcode(NetOffice.PublisherApi._Document doc, string bstrString)
 {
     Factory.ExecuteMethod(this, "MailMergeGenerateBarcode", doc, bstrString);
 }
Exemplo n.º 21
0
 public void DocumentOpen(NetOffice.PublisherApi._Document doc)
 {
     Factory.ExecuteMethod(this, "DocumentOpen", doc);
 }