home *** CD-ROM | disk | FTP | other *** search
/ Chip: 25 Years Anniversary / CHIP_25Jahre_Jubilaeum.iso / downloads / 401065 / WPO11 / Data1.cab / _DD9E43A4453748E49F07FFBF4DB7E716 < prev    next >
Text File  |  2003-03-07  |  17KB  |  692 lines

  1. PrintAction
  2.  
  3. Syntax
  4.  
  5. PrintAction([Action As _PrintAction_Action_enum]) As Integer
  6.  
  7. Description
  8.  
  9. Specify a print action and return the current print action.
  10.  
  11. Return Value
  12.  
  13. If the Action parameter is omitted, its current value is returned. If it is included, the current value is returned, then the new value is set.
  14.  
  15. 1    FullDocument!
  16.  
  17. 2    CurrentPage!
  18.  
  19. 3    MultiplePages!
  20.  
  21. 4    AdvancedMultiplePages!
  22.  
  23. 5    SelectedText!
  24.  
  25. 6    DocumentSummary!
  26.  
  27. 7    DocumentOnDisk!
  28.  
  29. Parameters
  30.  
  31. Action: enumeration (optional)    AdvancedMultiplePages!
  32.  
  33. CurrentPage!
  34.  
  35. DocumentOnDisk!
  36.  
  37. DocumentSummary!
  38.  
  39. FullDocument!
  40.  
  41. MultiplePages!
  42.  
  43. SelectedText!
  44.  
  45. PrintAdvancedRangeData
  46.  
  47. Syntax
  48.  
  49.  PrintAdvancedRangeData(Pages As String, SecondaryPages As String, Chapters As String, Volumes As String)
  50.  
  51. Description
  52.  
  53. Specify the pages to print. Follow this method with Print(AdvancedMultiplePages!).
  54.  
  55. The following rules apply to all PrintAdvancedRangeData parameter specifications:
  56.  
  57. ¿    To specify all Pages, Secondary Pages, Chapters, or Volumes use ("all").
  58.  
  59. ¿    Use the same numbering method as the document uses. For example, if the current Page number method is (A,B,C,...) and you want to print the first three pages, use ("A-C") in the Pages parameter, not ("1-3").
  60.  
  61. ¿    If you do not wish to specify a range or value for a parameter, use a null string ("").
  62.  
  63. Parameters
  64.  
  65. Pages: string    The pages to print.
  66.  
  67. SecondaryPages: string    The secondary pages to print.
  68.  
  69. Chapters: string    The chapters to print.
  70.  
  71. Volumes: string    The volumes to print.
  72.  
  73. PrintBooklet
  74.  
  75. Syntax
  76.  
  77.  PrintBooklet([State As _PrintBooklet_State_enum]) As Integer
  78.  
  79. Description
  80.  
  81. Turn booklet printing on or off.
  82.  
  83. Return Value
  84.  
  85. If the State parameter is omitted, its current value is returned. If the State parameter is included, the current value is returned, then the new value is set.
  86.  
  87. 0    Booklet printing is off.
  88.  
  89. 1    Booklet printing is on.
  90.  
  91. Parameters
  92.  
  93. State: enumeration (optional)    False!
  94.  
  95. True!
  96.  
  97. PrintCopies
  98.  
  99. Syntax
  100.  
  101. PrintCopies([NumberOfCopies As Integer]) As Integer
  102.  
  103. Description
  104.  
  105. Specify the number of copies to print.
  106.  
  107. Return Value
  108.  
  109. Returns the number of copies to print. If the NumberOfCopies parameter is omitted, its current value is returned. If the NumberOfCopies parameter is included, the current value is returned, then the new value is set.
  110.  
  111. Parameters
  112.  
  113. NumberOfCopies: numeric    The number of copies of each page to print.
  114.  
  115. PrintDestination
  116.  
  117. Syntax
  118.  
  119.  PrintDestination([Destination])
  120.  
  121. Description
  122.  
  123. Specify to print to a printer, file, or printer port.
  124.  
  125. Return Value
  126.  
  127. Returns the filename string, printer name string, 0 (if DriverPort! was selected), or 1 (if PromptForFilename! was selected). If the Destination parameter is omitted, its current value is returned. If the Destination parameter is included, the current value is returned, then the new value is set.
  128.  
  129. Parameters
  130.  
  131. Destination: any (optional)    Use a string specifying a path and filename to print to a file. Use a string specifying the name of a printer to print to a specific printer. Use PromptForFilename! to prompt the user for a filename to print to. Use DriverPort! to print to the current printer port.
  132.  
  133. DriverPort!
  134.  
  135. PromptForFilename!
  136.  
  137. PrintDlg
  138.  
  139. Syntax
  140.  
  141. PrintDlg()
  142.  
  143. Description
  144.  
  145. Display the Print dialog box.
  146.  
  147. PrinterCommand
  148.  
  149. Syntax
  150.  
  151.  PrinterCommand(flag As _PrinterCommand_Flag_enum, Command As String)
  152.  
  153. Description
  154.  
  155. Insert a [Ptr Cmnd] code at the insertion point.
  156.  
  157. Parameters
  158.  
  159. Flag: enumeration    Specify whether the Command parameter contains a printer method or filename.
  160.  
  161. Command!
  162.  
  163. File!
  164.  
  165. Command: string    The printer method or name of a file that contains one or more printer methods.
  166.  
  167. PrinterCommandDlg
  168.  
  169. Syntax
  170.  
  171. PrintCommandDlg()
  172.  
  173. Description
  174.  
  175. Display the Printer Command dialog box.
  176.  
  177. PrinterPause
  178.  
  179. Syntax
  180.  
  181. PrinterPause()
  182.  
  183. Description
  184.  
  185. Insert a [Pause Ptr] code at the insertion point to pause the current print job.
  186.  
  187. PrinterSelectByName
  188.  
  189. Syntax
  190.  
  191.  PrinterSelectByName([PrinterName]) As String
  192.  
  193. Description
  194.  
  195. Specify a printer to print to.
  196.  
  197. Return Value
  198.  
  199. Returns the printer name string, or 0, if Default! was selected. If the PrinterName parameter is omitted, its current value is returned. If the PrinterName parameter is included, the current value is returned, then the new value is set.
  200.  
  201. Parameters
  202.  
  203. PrinterName: any (optional)    The name of the printer to print to. For a list of valid names for the current computer, see the Name drop-down list in the Printer dialog tab of the Print dialog box. This list will probably vary from one computer to another.
  204.  
  205. Default!
  206.  
  207. PrinterSelectDlg
  208.  
  209. Syntax
  210.  
  211. PrinterSelectDlg()
  212.  
  213. Description
  214.  
  215. Display the Print to dialog box with the Printer tab selected.
  216.  
  217. PrintGraphically
  218.  
  219. Syntax
  220.  
  221. PrintGraphically([State As _PrintGraphically_State_enum]) As Boolean
  222.  
  223. Description
  224.  
  225. Turn the Print graphically option on or off.
  226.  
  227. Return Value
  228.  
  229. Returns True if the Print graphically option is on, False if not. If the State parameter is omitted, its current value is returned. If the State parameter is included, the current value is returned, then the new value is set.
  230.  
  231. Parameters
  232.  
  233. State: enumeration (optional)    False!
  234.  
  235. True!
  236.  
  237. PrintGraphics
  238.  
  239. Syntax
  240.  
  241.  PrintGraphics([State As _PrintGraphics_State_enum]) As Boolean
  242.  
  243. Description
  244.  
  245. Turn graphics printing on or off.
  246.  
  247. Return Value
  248.  
  249. Returns True if graphics printing is on, False if not. If the State parameter is omitted, its current value is returned. If the State parameter is included, the current value is returned, then the new value is set.
  250.  
  251. Parameters
  252.  
  253. State: enumeration (optional)    False!
  254.  
  255. True!
  256.  
  257. PrintHistoryDlg
  258.  
  259. Syntax
  260.  
  261. PrintHistoryDlg()
  262.  
  263. Description
  264.  
  265. Display the Print Status and History dialog box.
  266.  
  267. PrintImageBinding
  268.  
  269. Syntax
  270.  
  271. PrintImageBinding([Edge As _PrintImageBinding_Edge_enum]) As Integer
  272.  
  273. Description
  274.  
  275. Specify the binding edge. Use this method with PrintImageOffset and PrintTwoSided. This is a print-time option and does not insert a code in the document.
  276.  
  277. Return Value
  278.  
  279. If the Edge parameter is omitted, its current value is returned. If the Edge parameter is included, the current value is returned, then the new value is set.
  280.  
  281. 0    Left edge
  282.  
  283. 1    Right edge
  284.  
  285. 2    Top edge
  286.  
  287. 3    Bottom edge
  288.  
  289. 4    Inside edge
  290.  
  291. 5    Outside edge
  292.  
  293. Parameters
  294.  
  295. Edge: enumeration (optional)    BottomEdge!
  296.  
  297. InsideEdge!
  298.  
  299. LeftEdge!
  300.  
  301. OutsideEdge!
  302.  
  303. RightEdge!
  304.  
  305. TopEdge!
  306.  
  307. PrintImageOffset
  308.  
  309. Syntax
  310.  
  311. PrintImageOffset([Offset As Long]) As Long
  312.  
  313. Description
  314.  
  315. Specify the binding edge offset. Use this method with PrintImageBinding(). This is a print-time option and does not insert a code in the document.
  316.  
  317. Return Value
  318.  
  319. Returns the current printing offset value in WordPerfect Units (1/1200 in). If the Offset parameter is omitted, its current value is returned. If the Offset parameter is included, the current value is returned, then the new value is set.
  320.  
  321. Parameters
  322.  
  323. Offset: measurement (optional)    The distance to shift a page image. WordPerfect Units (1/1200 in) are assumed unless the DefaultUnits method precedes this method, or the units of the parameter are specified. To specify units for this parameter, include a unit indicator following the value. For example, PrintImageOffset(Offset: 1") specifies the value 1 as inches.
  324.  
  325. PrintInColor
  326.  
  327. Syntax
  328.  
  329. PrintInColor([State As _PrintInColor_State_enum]) As Boolean
  330.  
  331. Description
  332.  
  333. Turn color printing on or off. This is a print-time option and does not insert a code in the document. PrintInColor() takes effect only when the current printer is capable of color printing, regardless of the value returned.
  334.  
  335. Return Value
  336.  
  337. Returns True if Print in color is on, False if not. If the State parameter is omitted, its current value is returned. If the State parameter is included, the current value is returned, then the new value is set.
  338.  
  339. Parameters
  340.  
  341. State: enumeration (optional)    False!
  342.  
  343. True!
  344.  
  345. PrintInReverseOrder
  346.  
  347. Syntax
  348.  
  349. PrintInReverseOrder([State As _PrintInReverseOrder_State_enum]) As Boolean
  350.  
  351. Description
  352.  
  353. Turn reverse order printing on or off. This is a print-time option and does not insert a code in the document.
  354.  
  355. Return Value
  356.  
  357. Returns True if reverse order printing is on, False if not. If the State parameter is omitted, its current value is returned. If the State parameter is included, then current value is returned.
  358.  
  359. Parameters
  360.  
  361. State: enumeration (optional)    False!
  362.  
  363. True!
  364.  
  365. PrintRangeFrom
  366.  
  367. Syntax
  368.  
  369. PrintRangeFrom([Page As Integer]) As Integer
  370.  
  371. Description
  372.  
  373. Specify the first page in the print range. This is a print-time option and does not insert a code in the document. Use this method with PrintRangeTo and Print(Action: MultiplePages!).
  374.  
  375. Return Value
  376.  
  377. Returns the first page in the current print range. If the Page parameter is omitted, its current value is returned. If the Page parameter is included, the current value is returned, then the new value is set.
  378.  
  379. Parameters
  380.  
  381. Page: numeric (optional)    The first page to print.
  382.  
  383. PrintRangeTo
  384.  
  385. Syntax
  386.  
  387. PrintRangeTo([Page As Integer]) As Integer
  388.  
  389. Description
  390.  
  391. Specify the last page in the print range. This is a print-time option and does not insert a code in the document. Use this method with PrintRangeFrom and Print(Action: MultiplePages!).
  392.  
  393. Return Value
  394.  
  395. Returns the last page in the current print range. If the Page parameter is omitted, its current value is returned. If the Page parameter is included, the current value is returned, then the new value is set.
  396.  
  397. Parameters
  398.  
  399. Page: numeric (optional)    If this parameter equals zero, print to the end of the document.
  400.  
  401. PrintResolution
  402.  
  403. Syntax
  404.  
  405. PrintResolution([Quality As _PrintResolution_Quality_enum]) As Integer
  406.  
  407. Description
  408.  
  409. Specify the print resolution (quality).
  410.  
  411. Return Value
  412.  
  413. If the Quality parameter is omitted, its current value is returned. If the Quality parameter is included, the current value is returned, then the new value is set.
  414.  
  415. 1    Low
  416.  
  417. 2    Medium
  418.  
  419. 3    High
  420.  
  421. Parameters
  422.  
  423. Quality: enumeration (optional)    The print quality. Some printers allow more levels of print quality. To specify print quality on those printers, use 0-10. Refer to the specific printer documentation for print quality levels.
  424.  
  425. High!
  426.  
  427. Low!
  428.  
  429. Medium!
  430.  
  431. PrintResolutionDpiX
  432.  
  433. Syntax
  434.  
  435. PrintResolutionDpiX([Dpi As Integer]) As Integer
  436.  
  437. Description
  438.  
  439. Specify the horizontal dots per inch (DPI) for a print job. The direction is relative to the printer, not the page. Always use this method together with PrintResolutionDPIY(). PrintResolutionDPIX() and PrintResolutionDPIY() will always override PrintResolution() unless the value specified in the DPI parameter is not valid for the printer used. See your printer documentation for valid DPI values.
  440.  
  441. Return Value
  442.  
  443. Returns the horizontal dots per inch. If the DPI parameter is omitted, its current value is returned. If the DPI parameter is included, the current value is returned, then the new value is set.
  444.  
  445. Parameters
  446.  
  447. DPI: numeric (optional)    The horizontal print resolution.
  448.  
  449. PrintResolutionDpiY
  450.  
  451. Syntax
  452.  
  453.  PrintSettings(Action As _PrintSettings_Action_enum, [SettingName])
  454.  
  455. Description
  456.  
  457. Specify the vertical dots per inch (DPI) for a print job. The direction is relative to the printer, not the page. Always use this method together with PrintResolutionDPIX(). PrintResolutionDPIX() and PrintResolutionDPIY() will always override the PrintResolution() method unless the value specified in the DPI parameter is not valid for the printer used. See your printer documentation for valid DPI values.
  458.  
  459. Return Value
  460.  
  461. Returns the vertical dots per inch. If the DPI parameter is omitted, its current value is returned. If the DPI parameter is included, the current value is returned, then the new value is set.
  462.  
  463. Parameters
  464.  
  465. DPI: numeric (optional)    The vertical print resolution.
  466.  
  467. PrintSettings
  468.  
  469. Syntax
  470.  
  471.  PrintSettings(Action As _PrintSettings_Action_enum, [SettingName])
  472.  
  473. Description
  474.  
  475. Add, delete, update, and use printer named settings. Use other print option methods to set current options. Then use this method to save those options as a named setting.
  476.  
  477. Parameters
  478.  
  479. Action: enumeration    Add!
  480.  
  481. Delete!
  482.  
  483. Update!
  484.  
  485. Use!
  486.  
  487. SettingName: any (optional)    The name of the driver Named Setting. To apply the action specified in the Action parameter to the default setting, use Default!.
  488.  
  489. Default!
  490.  
  491. DriverSettings!
  492.  
  493. PrintSortOrder
  494.  
  495. Syntax
  496.  
  497. PrintSortOrder([Order As _PrintSortOrder_Order_enum]) As Integer
  498.  
  499. Description
  500.  
  501. Specify how to sort the pages of multiple-copy print jobs.
  502.  
  503. Return Value
  504.  
  505. Returns the current sorting for multiple-copy print jobs. If the Order parameter is omitted, its current value is returned. If the Order parameter is included, the current value is returned, then the new value is set.
  506.  
  507. Parameters
  508.  
  509. Order: enumeration (optional)    Collate!
  510.  
  511. Group!
  512.  
  513. PrintSourceFileName
  514.  
  515. Syntax
  516.  
  517. PrintSourceFileName([Filename As String]) As String
  518.  
  519. Description
  520.  
  521. Specify a document on disk to print.
  522.  
  523. Return Value
  524.  
  525. Returns the current filename to print from. If the PrinterName parameter is omitted, its current value is returned. If the PrinterName parameter is included, the current value is returned, then the new value is set.
  526.  
  527. Parameters
  528.  
  529. Filename: string (optional)    The filename of the document you want to print.
  530.  
  531. PrintSuppressedBoxes
  532.  
  533. Syntax
  534.  
  535.  PrintSuppressedBoxes([State As _PrintSuppressedBoxes_State_enum]) As Boolean
  536.  
  537. Description
  538.  
  539. Lets you specify whether or not to print boxes.
  540.  
  541. Parameter
  542.  
  543. State: enumeration (optional)    No!
  544.  
  545. Yes!
  546.  
  547. PrintTo
  548.  
  549. Syntax
  550.  
  551. PrintTo(Filename As String, PrinterName As String, [PrinterDevice As String], [PrinterPort As String])
  552.  
  553. Description
  554.  
  555. Print a specified file on disk to a specified printer.
  556.  
  557. Parameters
  558.  
  559. Filename: string    The path and filename of the file to print.
  560.  
  561. PrinterName: string    The name of the printer to print to. For a list of valid names for the current computer, see the Name drop-down list in the Printer dialog tab of the Print dialog box. This list will probably vary from one computer to another.
  562.  
  563. PrinterDevice: string    Not used.
  564.  
  565. PrinterPort: string    Not used.
  566.  
  567. PrintTwoSided
  568.  
  569. Syntax
  570.  
  571.  PrintTwoSided([Option As _PrintTwoSided_Option_enum]) As Integer
  572.  
  573. Description
  574.  
  575. Turn two-sided printing on or off and specify options. Use PrintTwoSided() with PrintUseTwoSidedDocCodes(State: False!) to ensure predictable results. This is a print-time option and does not insert a code in the document.
  576.  
  577. Return Value
  578.  
  579. If the Option parameter is omitted, its current value is returned. If the Option parameter is included, the current value is returned, then the new value is set.
  580.  
  581. 0    None
  582.  
  583. 1    Use Long edge for binding
  584.  
  585. 3    Use Short edge for binding
  586.  
  587. 4    Odd pages only
  588.  
  589. 5    Even pages only
  590.  
  591. Parameters
  592.  
  593. Option: enumeration (optional)    EvenOnly!
  594.  
  595. LongEdge!
  596.  
  597. None!
  598.  
  599. OddOnly!
  600.  
  601. ShortEdge!
  602.  
  603. PrintTwoSidedDocCodesDlg
  604.  
  605. Syntax
  606.  
  607. PrintTwoSidedDocCodesDlg()
  608.  
  609. Description
  610.  
  611. Display the Two-Sided Document Settings dialog box.
  612.  
  613. PrintUseTwoSidedDocCodes
  614.  
  615. Syntax
  616.  
  617. PrintUseTwoSidedDocCodes([State As _PrintUseTwoSidedDocCodes_State_enum]) As Boolean
  618.  
  619. Description
  620.  
  621. Turn Use two-sided document settings on or off.
  622.  
  623. Return Value
  624.  
  625. Returns True if Use two-sided document settings is on, False if not. If the State parameter is omitted, its current value is returned. If the State parameter is included, the current value is returned, then the new value is set.
  626.  
  627. Parameters
  628.  
  629. State: enumeration (optional)    False!
  630.  
  631. True!
  632.  
  633. PrintWithDocumentSummary
  634.  
  635. Syntax
  636.  
  637. PrintWithDocumentSummary([State As _PrintWithDocumentSummary_State_enum]) As Boolean
  638.  
  639. Description
  640.  
  641. Turn document summary printing on or off.
  642.  
  643. Return Value
  644.  
  645. Returns True if document summary printing is on, False if not. If the State parameter is omitted, its current value is returned. If the State parameter is included, the current value is returned, then the new value is set.
  646.  
  647. Parameters
  648.  
  649. State: enumeration (optional)    False!
  650.  
  651. True!
  652.  
  653. ProofReadAsYouGoOff
  654.  
  655. Syntax
  656.  
  657. ProofReadAsYouGoOff()
  658.  
  659. Description
  660.  
  661. Turn off Spell-As-You-Go and Grammar-As-You-Go.
  662.  
  663. ProofReadGrammar
  664.  
  665. Syntax
  666.  
  667. ProofReadGrammar()
  668.  
  669. Description
  670.  
  671. Mark and correct grammar errors as you type.
  672.  
  673. PublishToFaxDlg
  674.  
  675. Syntax
  676.  
  677. PublishToFaxDlg([Filename As String])
  678.  
  679. Description
  680.  
  681. Fax a document.
  682.  
  683. Parameter
  684.  
  685. FileName: string (optional)    The name of the file you want to fax.
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.