ShowOfficeDialog
ShowOfficeDialog 调用Office接口,弹出显示word自己的对话框。
语法:
pageofficectrl.ShowOfficeDialog(index);
参数 | 描述 |
---|---|
index | 整数类型。Word软件的对话框的序号。 |
index 取值范围,如下所示:
wdDialogHelpAbout = 9,
wdDialogHelpWordPerfectHelp = 10,
wdDialogHelpWordPerfectHelpOptions = 511,
wdDialogFormatChangeCase = 322,
wdDialogToolsOptionsFuzzy = 790,
wdDialogToolsWordCount = 228,
wdDialogDocumentStatistics = 78,
wdDialogFileNew = 79,
wdDialogFileOpen = 80,
wdDialogMailMergeOpenDataSource = 81,
wdDialogMailMergeOpenHeaderSource = 82,
wdDialogMailMergeUseAddressBook = 779,
wdDialogFileSaveAs = 84,
wdDialogFileSummaryInfo = 86,
wdDialogToolsTemplates = 87,
wdDialogOrganizer = 222,
wdDialogFilePrint = 88,
wdDialogMailMerge = 676,
wdDialogMailMergeCheck = 677,
wdDialogMailMergeQueryOptions = 681,
wdDialogMailMergeFindRecord = 569,
wdDialogMailMergeInsertIf = 4049,
wdDialogMailMergeInsertNextIf = 4053,
wdDialogMailMergeInsertSkipIf = 4055,
wdDialogMailMergeInsertFillIn = 4048,
wdDialogMailMergeInsertAsk = 4047,
wdDialogMailMergeInsertSet = 4054,
wdDialogMailMergeHelper = 680,
wdDialogLetterWizard = 821,
wdDialogFilePrintSetup = 97,
wdDialogFileFind = 99,
wdDialogMailMergeCreateDataSource = 642,
wdDialogMailMergeCreateHeaderSource = 643,
wdDialogEditPasteSpecial = 111,
wdDialogEditFind = 112,
wdDialogEditReplace = 117,
wdDialogEditGoToOld = 811,
wdDialogEditGoTo = 896,
wdDialogCreateAutoText = 872,
wdDialogEditAutoText = 985,
wdDialogEditLinks = 124,
wdDialogEditObject = 125,
wdDialogConvertObject = 392,
wdDialogTableToText = 128,
wdDialogTextToTable = 127,
wdDialogTableInsertTable = 129,
wdDialogTableInsertCells = 130,
wdDialogTableInsertRow = 131,
wdDialogTableDeleteCells = 133,
wdDialogTableSplitCells = 137,
wdDialogTableFormula = 348,
wdDialogTableAutoFormat = 563,
wdDialogTableFormatCell = 612,
wdDialogViewZoom = 577,
wdDialogNewToolbar = 586,
wdDialogInsertBreak = 159,
wdDialogInsertFootnote = 370,
wdDialogInsertSymbol = 162,
wdDialogInsertPicture = 163,
wdDialogInsertFile = 164,
wdDialogInsertDateTime = 165,
wdDialogInsertNumber = 812,
wdDialogInsertField = 166,
wdDialogInsertDatabase = 341,
wdDialogInsertMergeField = 167,
wdDialogInsertBookmark = 168,
wdDialogInsertHyperlink = 925,
wdDialogMarkIndexEntry = 169,
wdDialogMarkCitation = 463,
wdDialogEditTOACategory = 625,
wdDialogInsertIndexAndTables = 473,
wdDialogInsertIndex = 170,
wdDialogInsertTableOfContents = 171,
wdDialogMarkTableOfContentsEntry = 442,
wdDialogInsertTableOfFigures = 472,
wdDialogInsertTableOfAuthorities = 471,
wdDialogInsertObject = 172,
wdDialogFormatCallout = 610,
wdDialogDrawSnapToGrid = 633,
wdDialogDrawAlign = 634,
wdDialogToolsEnvelopesAndLabels = 607,
wdDialogToolsCreateEnvelope = 173,
wdDialogToolsCreateLabels = 489,
wdDialogToolsProtectDocument = 503,
wdDialogToolsProtectSection = 578,
wdDialogToolsUnprotectDocument = 521,
wdDialogFormatFont = 174,
wdDialogFormatParagraph = 175,
wdDialogFormatSectionLayout = 176,
wdDialogFormatColumns = 177,
wdDialogFileDocumentLayout = 178,
wdDialogFileMacPageSetup = 685,
wdDialogFilePrintOneCopy = 445,
wdDialogFileMacPageSetupGX = 444,
wdDialogFileMacCustomPageSetupGX = 737,
wdDialogFilePageSetup = 178,
wdDialogFormatTabs = 179,
wdDialogFormatStyle = 180,
wdDialogFormatStyleGallery = 505,
wdDialogFormatDefineStyleFont = 181,
wdDialogFormatDefineStylePara = 182,
wdDialogFormatDefineStyleTabs = 183,
wdDialogFormatDefineStyleFrame = 184,
wdDialogFormatDefineStyleBorders = 185,
wdDialogFormatDefineStyleLang = 186,
wdDialogFormatPicture = 187,
wdDialogToolsLanguage = 188,
wdDialogFormatBordersAndShading = 189,
wdDialogFormatDrawingObject = 960,
wdDialogFormatFrame = 190,
wdDialogFormatDropCap = 488,
wdDialogFormatBulletsAndNumbering = 824,
wdDialogToolsHyphenation = 195,
wdDialogToolsBulletsNumbers = 196,
wdDialogToolsHighlightChanges = 197,
wdDialogToolsAcceptRejectChanges = 506,
wdDialogToolsMergeDocuments = 435,
wdDialogToolsCompareDocuments = 198,
wdDialogTableSort = 199,
wdDialogToolsCustomizeMenuBar = 615,
wdDialogToolsCustomize = 152,
wdDialogToolsCustomizeKeyboard = 432,
wdDialogToolsCustomizeMenus = 433,
wdDialogListCommands = 723,
wdDialogToolsOptions = 974,
wdDialogToolsOptionsGeneral = 203,
wdDialogToolsAdvancedSettings = 206,
wdDialogToolsOptionsCompatibility = 525,
wdDialogToolsOptionsPrint = 208,
wdDialogToolsOptionsSave = 209,
wdDialogToolsOptionsSpellingAndGrammar = 211,
wdDialogToolsSpellingAndGrammar = 828,
wdDialogToolsThesaurus = 194,
wdDialogToolsOptionsUserInfo = 213,
wdDialogToolsOptionsAutoFormat = 959,
wdDialogToolsOptionsTrackChanges = 386,
wdDialogToolsOptionsEdit = 224,
wdDialogToolsMacro = 215,
wdDialogInsertPageNumbers = 294,
wdDialogFormatPageNumber = 298,
wdDialogNoteOptions = 373,
wdDialogCopyFile = 300,
wdDialogFormatAddrFonts = 103,
wdDialogFormatRetAddrFonts = 221,
wdDialogToolsOptionsFileLocations = 225,
wdDialogToolsCreateDirectory = 833,
wdDialogUpdateTOC = 331,
wdDialogInsertFormField = 483,
wdDialogFormFieldOptions = 353,
wdDialogInsertCaption = 357,
wdDialogInsertAutoCaption = 359,
wdDialogInsertAddCaption = 402,
wdDialogInsertCaptionNumbering = 358,
wdDialogInsertCrossReference = 367,
wdDialogToolsManageFields = 631,
wdDialogToolsAutoManager = 915,
wdDialogToolsAutoCorrect = 378,
wdDialogToolsAutoCorrectExceptions = 762,
wdDialogConnect = 420,
wdDialogToolsOptionsBidi = 1029,
wdDialogToolsOptionsView = 204,
wdDialogInsertSubdocument = 583,
wdDialogFileRoutingSlip = 624,
wdDialogFontSubstitution = 581,
wdDialogEditCreatePublisher = 732,
wdDialogEditSubscribeTo = 733,
wdDialogEditPublishOptions = 735,
wdDialogEditSubscribeOptions = 736,
wdDialogToolsOptionsTypography = 739,
wdDialogToolsOptionsAutoFormatAsYouType = 778,
wdDialogControlRun = 235,
wdDialogFileVersions = 945,
wdDialogToolsAutoSummarize = 874,
wdDialogFileSaveVersion = 1007,
wdDialogWindowActivate = 220,
wdDialogToolsMacroRecord = 214,
wdDialogToolsRevisions = 197,
wdDialogEmailOptions = 863,
wdDialogWebOptions = 898,
wdDialogFitText = 983,
wdDialogPhoneticGuide = 986,
wdDialogHorizontalInVertical = 1160,
wdDialogTwoLinesInOne = 1161,
wdDialogFormatEncloseCharacters = 1162,
wdDialogFormatTheme = 855,
wdDialogTCSCTranslator = 1156
示例:
pageofficectrl.ShowOfficeDialog(88); //显示打印对话框