The information in this article applies to:
SYMPTOMSIf you specify a document file name to preview with the DlgFilePreview statement and no document windows are open, the DlgFilePreview statement generates the following error: The WordBasic DlgFilePreview statement is used within a Word 6.0 for Windows dialog function to preview the document specified by Filename$. Syntax for DlgFilePreviewDlgFilePreview [Identifier[$]] [, Filename$] MORE INFORMATIONMicrosoft 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 the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/supportnet/refguide/The following sample macro checks the number of open windows (CountWindows) prior to displaying the dialog box. If no document windows are open, the macro opens a new document window with ScreenUpdating turned off. When the dialog box is closed, the new document window is closed without saving changes.
Note to Macintosh users: Use a Macintosh path in the DlgFilePreview command
line, for example:
DlgFilePreview "fileprev", "Macintosh HD:Desktop Folder:Test Document"For information about using a dialog function, see the "Creating Dynamic Dialog Boxes" topic in the Word 6.0 Online Help file. Additional query words: DlgFilePreview dialog dynamic function boxes error 152 not available
Keywords : kberrmsg kbmacro kbprg kbdtacode kbmacroexample winword macword word6 word7 word95 |
Last Reviewed: December 30, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |