Word rpc e call rejected

Проблемы

В Microsoft Office Accounting Professional или в Microsoft Office Accounting Express могут возникнуть указанные ниже проблемы.

  • Появляется следующее сообщение об ошибке:

    Произошла следующая ошибка Word: вызов был отвергнут абонентом. (Исключение из HRESULT: 0x80010001 (RPC_E_CALL_REJECTED)).

  • Специалист по учету перестает отвечать на запросы.

  • Финансовый расчет перестает отвечать на запросы.

Эта проблема возникает, если выполняется одно из указанных ниже условий.

  • Документ экспортируется в Microsoft Office Word.

  • Документ экспортируется в сообщение электронной почты.

Причина

Эта проблема возникает из-за того, что в Word не включена команда Показать все окна на панели задач .

Решение

Чтобы устранить эту проблему, установите флажок Показать все окна на панели задач в Word. Для этого воспользуйтесь одним из указанных ниже способов в зависимости от того, какая версия Word используется.

Microsoft Office Word 2007

  1. Откройте документ в Microsoft Office Word 2007.

  2. Нажмите кнопку Microsoft Office, нажмите кнопку Параметры Wordи выберите пункт Дополнительно.

  3. В разделе экранустановите флажок Показать все окна на панели задач .

  4. Нажмите кнопку ОК.

Microsoft Office Word 2003

  1. Откройте документ в Microsoft Office Word 2003.

  2. В меню Сервис выберите пункт Параметры.

  3. На вкладке вид установите флажок в поле Windows на панели задач .

  4. Нажмите кнопку ОК.

Нужна дополнительная помощь?

Symptoms

In Microsoft Office Accounting Professional or in Microsoft Office Accounting Express, you may experience one of the following problems:

  • You receive the following error message:

    The following Word error occurred: Call was rejected by callee. (Exception from HRESULT: 0x80010001(RPC_E_CALL_REJECTED)).

  • Accounting Professional stops responding.

  • Accounting Express stops responding.

This problem occurs if one of the following conditions is true:

  • You export a document to Microsoft Office Word.

  • You export a document to an e-mail message.

Cause

This problem occurs because the Show all windows in the taskbar option is not enabled in Word.

Resolution

To resolve this problem, enable the Show all windows in the taskbar option in Word. To do this, use one of the following methods, depending on which version of Word you are using.

Microsoft Office Word 2007

  1. Open a document in Microsoft Office Word 2007.

  2. Click the Microsoft Office Button, click Word Options, and then click Advanced.

  3. Under Display, click to select the Show all windows in the taskbar check box.

  4. Click OK.

Microsoft Office Word 2003

  1. Open a document in Microsoft Office Word 2003.

  2. On the Tools menu, click Options.

  3. On the View tab, click to select the Windows in Taskbar check box.

  4. Click OK.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

I have a small C# Winforms Application that is using Word.Interop to Take a Single Mail Merge Document, copy each section, paste that section into it’s own document, and save it individually.

Error

I keep (sometimes randomly) getting the error message: Call was rejected by callee. (Exception from HRESULT: 0x80010001 (RPC_E_CALL_REJECTED)). I have tested my below code and when I use breakpoints, I never receive this message. However, if I let it run uninhibited, it seems to error out at my line oNewWord.ActiveDocument.Range(0, 0).Paste();. What is even weirder, sometimes I get the Exception Message as expected, other times processing seems to just hang up and when I press PAUSE in Visual Studio, it shows me as currently at my Exception Message box line.

Anyone know how to resolve this?

CODE:

public void MergeSplitAndReview()
        {
            try
            {
                // Mail Merge Template
                Word.Application oWord = new Word.Application();
                Word.Document oWrdDoc = new Word.Document();

                // New Document Instance
                Word.Application oNewWord = new Word.Application();
                Word.Document oNewWrdDoc = new Word.Document();

                object doNotSaveChanges = Word.WdSaveOptions.wdDoNotSaveChanges;

                // Documents must be visible for code to Activate()
                oWord.Visible = true;
                oNewWord.Visible = true;

                Object oTemplatePath = docLoc;
                Object oMissing = System.Reflection.Missing.Value;

                // Open Mail Merge Template
                oWrdDoc = oWord.Documents.Open(oTemplatePath);

                // Open New Document (Empty)
                // Note: I tried programmatically starting a new word document instead of opening an exisitng "blank",
                //       bu when the copy/paste operation occurred, formatting was way off. The blank document below was
                //       generated by taking a copy of the FullMailMerge.doc, clearing it out, and saving it, thus providing
                //       a kind of formatted "template".
                string newDocument = projectDirectory + "\NewDocument.doc";
                oNewWrdDoc = oNewWord.Documents.Open(newDocument);

                // Open Mail Merge Datasource
                oWrdDoc.MailMerge.OpenDataSource(docSource, oMissing, oMissing, oMissing,
                   oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing, oMissing);

                // Execute Mail Merge (Opens Completed Mail Merge Documents Titled "Letters1")
                oWrdDoc.MailMerge.Execute();

                int docCnt = oWord.ActiveDocument.Sections.Count - 1;
                int cnt = 0;
                while (cnt != docCnt)
                {
                    cnt++;
                    string newFilename = "";

                    // Copy Desired Section from Mail Merge
                    oWord.ActiveDocument.Sections[cnt].Range.Copy();
                    // Set focus to the New Word Doc instance
                    oNewWord.Activate();
                    // Paste copied range to New Word Doc




                    oNewWord.ActiveDocument.Range(0, 0).Paste(); // THIS IS THE POINT WHERE I GET THE ERROR MENTIONED WHEN NOT USING A BREAKPOINT.



                    foreach (ListViewItem lvI in lvData.Items)
                    {
                        if (lvI.Checked) // Get first checked lvI in lvData to use for generating filename
                        {
                            updateAddrChngHistory(lvI.SubItems[18].Text);

                            string fileSys = lvI.SubItems[14].Text.ToUpper();
                            string memNo = lvI.SubItems[0].Text;

                            newFilename = fileSys + "%" + memNo + "%" + "" + "%" + "" + "%" + "CORRESPONDENCE%OUTGOING - ACKNOWLEDGEMENT%" + DateTime.Now.ToString("yyyy-MM-dd-hh.mm.ss.ffffff") + ".doc";

                            lvI.Remove(); // Delete from listview the lvI used for newFilename
                            break;        // Break out of foreach loop
                        }
                    }

                    // Save New Word Doc
                    oNewWord.ActiveDocument.SaveAs2(docTempDir + newFilename);
                    // Clear New Word Doc
                    oNewWord.ActiveDocument.Content.Select();
                    oNewWord.Selection.TypeBackspace();
                }
                // Hides my new word instance used to save each individual section of the full Mail Merge Doc
                oNewWord.Visible = false;
                // MessageBox.Show(new Form() { TopMost = true }, "Click OK when finished.");
                MessageBox.Show(new Form() { TopMost = true }, "Click OK when finished.");

                oNewWord.ActiveDocument.Close(doNotSaveChanges); // Close the Individual Record Document
                oNewWord.Quit();                                 // Close Word Instance for Individual Record
                oWord.ActiveDocument.Close(doNotSaveChanges);    // Close the Full Mail Merge Document (Currently ALSO closes the Template document)
                // oWord.Documents.Open(docTempDir + "FullMailMerge.doc");

                oWord.Quit(doNotSaveChanges);                    // Close the Mail Merge Template
                MessageBox.Show("Mail Merge Completed, Individual Documents Saved, Instances Closed.");
            }
            catch (Exception ex)
            {
                LogException(ex);
                MessageBox.Show("Source:t" + ex.Source + "nMessage: t" + ex.Message + "nData:t" + ex.Data);
                // Close all Word processes
                Process[] processes = Process.GetProcessesByName("winword");
                foreach (var process in processes)
                {
                    process.Close();
                }
            }
            finally
            {

            }
        }

Hey Everyone hoping someone can help me I am at a dead end. Here is the scenario:

When we merge a document thru our database to send to efiling we are getting an error message stating Call was rejected by callee (RPC_E_CALL_REJECTED).

Now we only get this error message if we have any images in the document. If we take the state seal and the signature box out of the document everything works fine.

We have tried with only image different images different file types of images. Any image fails and creates this error.

What is happening is the document is being created in Word on the local machine, then once created and the save button is selected the database program uses the word 2010 export to pdf and creates the pdf which it them saves. This is where the error happens, and only happens with images in the documents.

We cannot change the way the pdf is exported as that is coded into the program we use.

Attached is the entire error we are getting. The client tool is what helps us get the efiling done and is part of the database program.

Any ideas would be welcomed

Thanks,

Phil

attach_file
Attachment

error.png
250 KB

Hi all,

I have a problem involving Word automation and the use of Paint.

The situation is:
A Word-document is being manipulated through automation. When I open Paint and copy (part of) the picture, I get a ‘call was rejected by callee’ error from the VB2005 application automating Word.

When I use sleep(100) and retry (resume) the statement, it works fine. However, as long as the Paint session is open, every action I perform on Word will require a second try. Since there’s quite a lot of them, this will slow the application down considerably. As soon as Paint is closed, the Word-automation continues without errors.

Interesting detail: this application was upgraded from VB6, with only minimal changes. This problem did not occur in VB6.

Does anyone have any idea what causes this and/or how this can be solved?
(Apart from forcing users to close Paint or use some other program for getting their screen captures, that is…)

Technical details:
Using XP SP2, Word 2003 SP2 and VS2005 Pro.

Thanks in advance,
Saskia Brand

Понравилась статья? Поделить с друзьями:
  • Word rounded text box
  • Word round table corners
  • Word round card game
  • Word rose on environment
  • Word roots with examples