FIX: Word 2002 Returns an Error on Call to IPrint::Print Although Document Prints (308937)
The information in this article applies to:
This article was previously published under Q308937 SYMPTOMS
ActiveX Document containers that use the IPrint interface to print an embedded Word document may generate one of the following error messages when calling the IPrint::Print method:
This problem occurs if the ActiveX Document server is Word 2002 (Microsoft Office XP), and the client that uses the IPrint interface is out-of-process. The document may print, but you may report that the document cannot print, and you cannot obtain out parameters (such as the number of pages printed) from Word. CAUSE
Word 2002 accidentally deletes the DVTARGETDEVICE* parameter that is passed to the IPrint::Print method. For out-of-process clients, this causes the proxy/stub code to fail on the return of the function because it tries to marshal the structure data back to the client. Although the proxy/stub DLL traps the access violation, it does not return any of the other return values to the method call and then issues the HRESULT error.
In-process callers to the method do not see this error, but the pointer that is passed to the Print method is no longer valid, and these clients may see their own access violation issues as a result.
RESOLUTIONService Pack InformationThis problem is corrected in Office XP Service Pack 3.To resolve this problem, obtain the latest service pack for Microsoft Office XP. For additional information, click the following article number to view the article in the Microsoft Knowledge Base: 307841 How to obtain the latest Office XP Service Pack Hotfix Information
A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Public Update or Service Patch that contains this hotfix.
To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.
After the hotfix is installed, the English version of this fix will have the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
Date Time Size File name
--------------------------------------------
30-Apr-2003 20:12 1,804 Hotfix.txt
29-Apr-2003 06:32 6,500 Readme.txt
29-Apr-2003 07:26 8,295,812 Winwordff.msp
29-Apr-2003 06:17 3,025,704 Winwordop.msp
The English version of this fix should have the following file attributes or later:
Date Time Version Size File name
----------------------------------------------------------
28-Apr-2003 21:27 10.0.5222.0 10,603,080 Winword.exe
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Office XP Service Pack 3.
Modification Type: | Major | Last Reviewed: | 4/7/2006 |
---|
Keywords: | kbQFE KBHotfixServer kbActiveDocs kbbug kbContainer kbpending KB308937 kbAudDeveloper |
---|
|