Microsoft KB Archive/818052

= WD2002: Word Ignores Pages per Sheet Setting When You Print From wdDialogFilePrint Dialog Object =

Article ID: 818052

Article Last Modified on 11/23/2006

-

APPLIES TO


 * Microsoft Word 2002 Standard Edition

-





For a Microsoft Word 2000 version of this article, see 817432.



SYMPTOMS
When you use the Show or Run methods to programmatically display the Print dialog box (wdDialogFilePrint), and you then change the pages per sheet setting, the change may be ignored, and one page per sheet is always printed. However, this symptom does not occur if you use the Print command on the File menu to manually show the dialog box.



CAUSE
This problem may occur if you use one of the following samples of Microsoft Visual Basic for Applications macros: Sub TestPrint

Application.Dialogs(wdDialogFilePrint).Show

End Sub -or- Sub TestPrint

Application.Dialogs(wdDialogFilePrint).Execute

End Sub



Service Pack Information
This 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 Office XP service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

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.

The global version of this fix should have the following file attributes or later:   Date         Time   Size       File name 10-Apr-2003 15:04  3,018,496  Winwordop.msp  (Client Update) 10-Apr-2003 16:12  8,299,864  Winwordff.msp  (Full File Update) After the hotfix is installed, the global 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   Version      Size        File name 10-Apr-2003 07:32  10.0.5208.0  10,603,080  Winword.exe This fix is a post-Office XP Service Pack 2 (SP-2) fix. To install the fix, you must have Office XP SP-2 installed. For additional information about Office XP SP-2, click the following article number to see the article in the Microsoft Knowledge Base:

325671 OFFXP: Overview of the Office XP Service Pack 2

Additionally, you may have to install Windows Installer 2.0 to install this fix. For additional information about the Windows Installer requirement for post-Office XP SP-2 fixes, click the following article number to see the article in the Microsoft Knowledge Base:

330537 OFFXP: Office XP Updates and Patches Released After September 2002 May Require Windows Installer 2.0



WORKAROUND
Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Partners, see the following Microsoft Web site:

https://partner.microsoft.com/global/30000104

For additional information about the support options available from Microsoft, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

To work around this problem, use the following sample Visual Basic for Applications macro: Sub TestPrint

Application.CommandBars(&quot;Menu Bar&quot;) _ .Controls(&quot;&File&quot;).Controls(&quot;&Print...&quot;).Execute

End Sub



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Office XP Service Pack 3.

Additional query words: OFFQFE 8165

Keywords: kbqfe kbhotfixserver kbbug kbfix kbofficexppresp3fix KB818052

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.