Kbase 21231: I18N. Sample Code to Convert Code Page Depending on Printer
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/03/2003 |
|
Status: Unverified
GOAL:
I18N. Sample Code to Convert Code Page Depending on Printer Type
FIX:
This example code shows how to override the code page being used for printer output. This is useful if data is being output to multiple printer destinations of different types.
CASE whichPrinter:
/* dot matrix printer */
WHEN "okidata ml 320" THEN
OUTPUT TO PRINTER CONVERT TARGET "ibm850".
/* laser jet printer */
WHEN "hplaserjet" THEN
OUTPUT TO PRINTER CONVERT TARGET "iso8859-1".
OTHERWISE
OUTPUT TO PRINTER.
END CASE.