home *** CD-ROM | disk | FTP | other *** search
/ Painter Bear's Language Bridge — Italian / Bridge_ponte_itialian.iso / pc / xtras / -pmatic.dir / docs_5.txt < prev    next >
Encoding:
Text File  |  1999-09-22  |  1.7 KB  |  37 lines

  1. Page Setup and Job Setup Dialogs
  2.  
  3. The following commands are used to display the Page Setup and the print Job Setup dialog boxes for the user:
  4.  
  5.     doPageSetup    Presents the Page Setup dialog
  6.     doJobSetup     Presents the Print Job Setup dialog
  7.     
  8. Calling these routines is optional; if they are not called, the document or print job will be set up with default values.
  9.  
  10.  
  11. doPageSetup
  12.  
  13. Syntax:    doPageSetup(document)
  14.  
  15. Returns:   TRUE if the user clicks "OK" in the page setup dialog
  16.           FALSE  if the user clicks "Cancel" in the page setup dialog
  17.  
  18. The doPageSetup function displays the Page Setup dialog for a document. This function must be called on an empty document, before any elements are added to it. doPageSetup returns TRUE if the user clicks the "OK" button in the dialog box, or FALSE if the user clicks "Cancel". You can call the getLandscapeMode routine before and after doPageSetup to determine if the user changed the page orientation in the Page Setup dialog box.
  19.  
  20.  
  21. doJobSetup
  22.  
  23. Syntax:    doJobSetup(document)
  24.  
  25. Returns:   TRUE if the user clicks "Print" in the job setup dialog
  26.           FALSE if the user clicks "Cancel" in the job setup dialog
  27.  
  28. The doJobSetup function displays the job setup dialog for a PrintOMatic document. This function should be called right before printing. If doJobSetup returns TRUE, the user clicked the "Print" button, and printing should proceed. If doJobSetup returns FALSE, the user clicked "Cancel", and you should not print the document. This function cannot be called on an empty document.
  29.  
  30. Example:
  31.  
  32. This is the recommended way of calling doJobSetup right before printing a PrintOMatic document:
  33.  
  34.     if doJobSetup (doc) = TRUE then print doc
  35.  
  36.  
  37.