示例#1
0
        /// <summary>
        /// Initialize plugin before document conversion.
        /// Start PowerPoint
        /// </summary>
        public void Init()
        {
            KillPowerPoint();

            try
            {
                _builder = new PowerPointBuilder();
                // setup progress delegate
                _builder.Progress = new ProgressDelegate(ProgressInfo);
            }
            catch (PowerPointApplicationException ex)
            {
                Messenger.Instance.SendMessage(ex.Message, MessageLevel.ERROR);
                throw ex;    // propagate exception (to end document processing loop)
            }
        }
示例#2
0
 /// <summary>
 /// Conversion is completed, free plugin resources
 /// </summary>
 public void Done()
 {
     // close PowerPoint and opened presentations
     _builder.Close();
     _builder = null;
 }