すべての PC_PRINTER_ ルーチンのデフォルト プリンターのプロパティを設定します。
 
  
 
	  
	 構文:
 
		 
		call "PC_PRINTER_DEFAULT_PROPERTIES" using by value     flags
                                           by reference properties
                                           returning    status-code
 
	  
 
	 パラメーター
 
		 
		 
		   
			 - flags
 
 
			 - 呼び出しプロトタイプ使用時 (「説明の読み方」を参照):cblt-os-flags
 
 
			 - PIC:数値リテラル、pic x(4) comp-5、または pic x(8) comp-5 (64 ビットのネイティブ プログラムのみ)
 
 
		   
		   
			 - properties
 
 
			 - cblt-printer-properties として定義されている集団 (以下を含む)
                     				
01 cblt-printer-properties typedef 
  03 cblte-pp-len           cblt-x2-comp5    pic x(2) comp-5. 
  03 cblte-pp-papersize     cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-paperlength   cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-paperwidth    cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-scale         cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-copies        cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-papertray     cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-printquality  cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-color         cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-duplex        cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-orientation   cblt-sx2-comp5   pic s9(4) comp-5. 
  03 cblte-pp-yresolution   cblt-sx2-comp5   pic s9(4) comp-5. 
 
 
			  
 
		   
		   
			 - status-code
 
 
			 - 「説明の読み方」を参照
 
 
		   
		
 
	  
 
	 入力パラメーター:
 
		 
		 
		   
			 - flags
 
 
			 - どのプロパティを変更するかを制御するフラグ。値は以下の組み合わせになります。
 
					  
					  
					  
						 
						  | P-PAPERSIZE | 
 
						  1 | 
 
						
 
						 
						  | P-PAPERLENGTH | 
 
						  2 | 
 
						
 
						 
						  | P-PAPERWIDTH | 
 
						  4 | 
 
						
 
						 
						  | P-SCALE | 
 
						  8 | 
 
						
 
						 
						  | P-COPIES | 
 
						  16 | 
 
						
 
						 
						  | P-PAPERTRAY | 
 
						  32 | 
 
						
 
						 
						  | P-PRINTQUALITY | 
 
						  64 | 
 
						
 
						 
						  | P-COLOR | 
 
						  128 | 
 
						
 
						 
						  | P-DUPLEX | 
 
						  256 | 
 
						
 
						 
						  | P-ORIENTATION | 
 
						  512 | 
 
						
 
						 
						  | P-YRESOLUTION | 
 
						  1024 | 
 
						
 
					 
 
				  
 
 
			  
 
		   
		   
			 - cblte-pp-len
 
 
			 - properties バッファーのサイズに設定する必要があります。
 
 
		   
		   
			 - cblte-pp-papersize
 
 
			 - 用紙サイズ。WINDOWS.CPY ファイルで定義されている DMPAPER- 定数のいずれかを使用します。
 
 
		   
		   
			 - cblte-pp-paperlength
 
 
			 - 用紙の長さ (10 分の 1 ミリメートル単位)。
 
 
		   
		   
			 - cblte-pp-paperwidth
 
 
			 - 用紙の幅 (10 分の 1 ミリメートル単位)。
 
 
		   
		   
			 - cblte-pp-scale
 
 
			 - 出力を拡大縮小する際の倍率。
 
 
		   
		   
			 - cblte-pp-copies
 
 
			 - 印刷する部数。
 
 
		   
		   
			 - cblte-pp-papertray
 
 
			 - 使用する用紙トレイの番号。WINDOWS.CPY ファイルで定義されている DMBIN- 定数のいずれかを使用します。
 
 
		   
		   
			 - cblte-pp-printquality
 
 
			 - 印刷品質。WINDOWS.CPY ファイルで定義されている DMRES- 定数のいずれかを使用します。または、水平解像度 (dpi) として、正の値を指定します。
 
 
		   
		   
			 - cblte-pp-color
 
 
			 - DMCOLOR- 定数のいずれかを使用して、モノクロ印刷とカラー印刷を切り替えます。
 
 
		   
		   
			 - cblte-pp-duplex
 
 
			 - DMDUP- 定数のいずれかを使用して、両面印刷を選択します。
 
 
		   
		   
			 - cblte-pp-orientation
 
 
			 - DMORIENT- 定数のいずれかを使用して、用紙の向きを選択します。
 
 
		   
		   
			 - cblte-pp-yresolution
 
 
			 - 垂直解像度 (dpi)。
 
 
		   
		
 
	  
 
	 
 
	 
 
   
 
説明:
WINDOWS.CPY ファイルは、この COBOL システムに付属しています。
デフォルト パラメーターは、デフォルトのプリンターが開かれるまで検証されません。