protected void DoWork(BackgroundWorker worker, OfficeDocument doc)
        {
            int nWordCount = doc.WordCount;

            /*
             * if (doc.GetType() == typeof(PubDocument))   // for publisher, we step when we've found a font
             * {
             *      progressBarFontsInUse.Maximum = nWordCount;
             *      progressBarFontsInUse.Step = 1;
             *      nWordCount = 0;
             * }
             */
            FontNamesInUseProcessor aDocumentProcess = new FontNamesInUseProcessor(nWordCount, worker);

            try
            {
                doc.ProcessWordByWord(aDocumentProcess);
            }
            catch (Exception ex)
            {
                OfficeApp.DisplayException(ex);
            }
        }
		protected void DoWork(BackgroundWorker worker, OfficeDocument doc)
		{
			int nWordCount = doc.WordCount;
			/*
			if (doc.GetType() == typeof(PubDocument))   // for publisher, we step when we've found a font
			{
				progressBarFontsInUse.Maximum = nWordCount;
				progressBarFontsInUse.Step = 1;
				nWordCount = 0;
			}
			*/
			FontNamesInUseProcessor aDocumentProcess = new FontNamesInUseProcessor(nWordCount, worker);

			try
			{
				doc.ProcessWordByWord(aDocumentProcess);
			}
			catch (Exception ex)
			{
				OfficeApp.DisplayException(ex);
			}
		}