home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / nettos11.zip / DOC / STRUCTS.DOC < prev   
Text File  |  1993-02-23  |  8KB  |  202 lines

  1. !short: The CAPTURE FLAGS array
  2. '---------------------------------------------------------------
  3.  
  4. Some print functions return an array of capture flags.  By including
  5. NETTO.CH in your applications, you can use some pre-defined constants
  6. that correspond to various array elements, which are as follows:
  7.  
  8.  
  9.   Name             Type  Element (number and define)
  10.                          CAPTURE Syntax
  11.   ---------------------------------------------------
  12.  
  13.   Status Flag         N   1   CF_STATUSFLAG 
  14.   
  15.     Indicates if a capture is enabled (a value of 0) or disabled (any
  16.     other value). Used internally and should always be set to 0.
  17.                 
  18.   Print Flags         A   2   CF_PRINTFLAGS
  19.  
  20.     An array of four Logical values controlling different aspects of the
  21.     print job.
  22.     
  23.   Print Release        L   1   CF_PRINTRELEASE
  24.                           JOBRELEASE / NOJOBRELEASE 
  25.  
  26.     Set to TRUE (.t.) to tell the print service to release the print job
  27.     for printing if the capture is interrupted by a loss of connection
  28.     time to the server. This allows a partially finished job to still be
  29.     printed if there is a problem with the workstation.
  30.  
  31.     Suppress Form Feed  L    2  CF_SUPPRESSFORMFEED
  32.                             FORMFEED / NOFORMFEED
  33.  
  34.       Set to TRUE (.t.) to suppress the automatic form feed after the
  35.       print job has been printed.
  36.  
  37.     Convert Control     L    3  CF_INTERPRETCTRLSEQ
  38.                             TABS / NOTABS
  39.     
  40.       Converts all TABS and other control characters before printing.
  41.       TABS are converted to Spaces. Tab size is controlled by CF_TABSIZE
  42.  
  43.     Print Banner        L    4  CF_PRINTBANNER     
  44.                             BANNER / NOBANNER
  45.                        
  46.      Set to TRUE (.t.) to print a banner before the print job.
  47.  
  48.   Tab Size            N   3  CF_TABSIZE
  49.                          SETTABS <nTabs>
  50.     
  51.     Determines how many spaces for each tab place. Valid range is 1-18.
  52.     Default is 8. Tab conversion to spaces is only performed if
  53.     CF_INTERPRETCTRLSEQ is TRUE (.t.)
  54.  
  55.   Server Printer      N   4  CF_SERVERPRINTER      
  56.                          SERVERPRINTER <nPrinter>
  57.     
  58.     The number of the printer to which the print job will be sent. Valid
  59.     range is 0-4. Default is 0. Under Netware 2.0a, this is the physical
  60.     printer number. Under Netware 2.1x and above, this value controls
  61.     which spooler controls the print job.
  62.  
  63.   Number of Copies    N   5  CF_NUMBERCOPIES       
  64.                          COPIES <nCopies>
  65.   
  66.     Controls the number of copies of the job printed. Range is 0-255.
  67.     Default is 1. To print to a file, set this value to 0 (eg don't print
  68.     anything to a printer).
  69.  
  70.   Form Type           N   6  CF_FORMTYPE           
  71.                          FORMTYPE <nCopies>
  72.   
  73.     Controls which form type to use for the job. Range is 0-255. Default is
  74.     0. If the form type requested is not in the requested printer,
  75.     Netware will wait for a "MOUNT FORM x" instruction from the console.
  76.     
  77.     Remember to instruct Supervisors and Users on how to change forms if
  78.     you implement this flag.
  79.  
  80.   Reserved                7  CF_RESERVEDFLAG1
  81.     
  82.     This flag is reserved for future Netware versions.
  83.  
  84.   Banner Text         C   8  CF_BANNERTEXT         
  85.                          BANNERTEXT <cBanner>
  86.      
  87.     A 14 byte string indicating the name appearing on the bottom half of a
  88.     banner page. All letters should be uppercase. If all characters are
  89.     nuls the capture file name appears on banner page. This is the
  90.     default.
  91.  
  92.   Reserved                9  CF_RESERVEDFLAG2      
  93.      
  94.     This flag is reserved for future Netware versions.
  95.  
  96.   Local LPT Device    N  10  CF_LOCALLPTDEVICE     
  97.     
  98.     Specifies the LPT device to print to. 1=Lpt1, 2=Lpt2, 3=Lpt3
  99.  
  100.   Flush Capture T/out N  11  CF_FLUSHCAPTIMEOUT    
  101.                          TIMEOUT <nTime>
  102.     
  103.     The Flush Capture Timeout flag determines the number of ticks (1/18
  104.     second) should pass before the print job is automatically closed and
  105.     flushed. If this occurs, another print job is opened awaiting more
  106.     data. Range is 0 to 65535
  107.  
  108.   Flush/Device Close  L  12  CF_FLUSHCAPONDEVCLOSE 
  109.                          FLUSHDEVICE / NOFLUSHDEVICE
  110.     
  111.     Set the Flush on Device Close flag to TRUE (.t.) to automatically flush
  112.     and close the print job when an application closes the LPT device it is
  113.     printing to. Default is FALSE (.f.)
  114.     
  115.   Maximum Lines       N  13  CF_MAXLINES           
  116.                          MAXLINES <nLines>
  117.  
  118.     Determines the maximum lines per page. Range is 0-65535. Default is 66.
  119.     
  120.   Maximum Characters  N  14  CF_MAXCHARS
  121.                          MAXCHARS <nChars>
  122.  
  123.     Maximum Characters per Line. Range is 0-65535. Default is 132.
  124.     
  125.   Form Name           C  15  CF_FORMNAME           
  126.                          FORMNAME <cForm>
  127.  
  128.     Contains the name of the form to be mounted on the printer. It is not
  129.     used by the server (which only uses the Form Type, CF_FORMTYPE), and is
  130.     provided for reference.
  131.  
  132. The following flags cannot be changed.
  133.  
  134.   LPT Capture         L  16  CF_LPTCAPTUREFLAG     
  135.     
  136.     Indicates if capture to a specified LPT is active. Contains TRUE (.t.)
  137.     if the capture is active.
  138.     
  139.   File Capture        L  17  CF_FILECAPTUREFLAG    
  140.     
  141.     TRUE (.t.) when a capture filename has been specified. Printing will
  142.     be redirected to a file instead of a printer.
  143.  
  144.  
  145.   Timing Out          L  18  CF_TIMINGOUTFLAG      
  146.     
  147.     TRUE (.t.) if a timeout has been specified with the Flush Capture
  148.     Timeout flag (CF_FLUSHCAPTIMEOUT). FALSE (.f.) when no timeout count is
  149.     underway.
  150.     
  151.   Printer Buffer Adrs N  19  CF_PRTRSETBUFFERADD   
  152.     
  153.     The Printer Setup Buffer Address. This flag contains a long pointer to
  154.     a buffer that contains the printer setup string. This string is written
  155.     to the printer (or capture file) at the start of the job. The size of
  156.     the buffer can be modified in the SHELL.CFG file, and is stored as the
  157.     first word of the buffer. The buffer (not the flag) can be modified.
  158.     
  159.   Printer Reset Adrs  N  20  CF_PRTRESETBUFFADD    
  160.     
  161.     The Printer Reset Buffer Address. This flag contains a long pointer to
  162.     a buffer that contains the printer reset string. This string is written
  163.     to the printer (or capture file) at the end of the job. The size of
  164.     the buffer can be modified in the SHELL.CFG file, and is stored as the
  165.     first word of the buffer. The buffer (not the flag) can be modified.
  166.     
  167.   Conn ID Queue       N  21  CF_CONIDQUEPRTJOB     
  168.     
  169.     Contains the Connection ID of the Server receiving the print job.
  170.     Values range from 1 to 8.
  171.  
  172.   Capture In Progress L  22  CF_CAPTUREINPROG        
  173.  
  174.     The Capture in Progress Flag is set (TRUE, .t.) when the first
  175.     character is sent to the specified LPT device. The flag is cleared
  176.     (FALSE, .f.) when the capture is ended, cancelled or flushed.
  177.  
  178.   Print Queue         L  23  CF_PRINTQUEUEFLAG       
  179.  
  180.     The Print Queue Flag is set (.t.) when the print queue job entry is
  181.     placed into the print queue. It is cleared when the job is ended or
  182.     cancelled.
  183.  
  184.   Print Job Valid     L  24  CF_PRINTJOBVALID        
  185.  
  186.     The Print Job Valid Flag is set (.t.) when the capture file is open
  187.     to receive characters. It is cleared (.f.) when the capture is ended,
  188.     cancelled or flushed.
  189.  
  190.   Print Queue ID      N  25  CF_PRINTQUEUEID         
  191.  
  192.     This flag contains the Bindery object ID of the print queue on the
  193.     target server. Only valid when CF_PRINTQUEUEFLAG is set.
  194.  
  195.   Print Job Number    N  26  CF_PRINTJOBNUMBER       
  196.  
  197.     Contains a Print Job Number that the Queue Management System assigns to
  198.     print job entries. This value may be modified (by console operators)
  199.     through the QMS functions.
  200.  
  201.  
  202.