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

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