How to print Chinese characters in report server in iAS 10g

博客介绍了Oracle报告服务器的部署及中文PDF打印的设置步骤。包括将报告部署到指定路径、确保报告能正确打印、在配置文件中定义环境ID、添加默认环境ID。打印中文PDF还需复制中文字体到指定目录,修改字体别名文件,每次修改后需重启服务器。

1. deploy a rep into report deployment path defined in sourceDir in <oraclehome> /reports/conf/<repserver> .conf

2. make sure the rep can print correctly

3. define two environment ids in .conf, one is UTF8 with NLS_LANG set as AMERICAN_AMERICAN.UTF8, the other is called zhs, with NLS_LANG set to SIMPLIFIED CHINESE_CHINA.ZHS16GBK

4. in the Engine section, add the defaultEnvId 

to print chinese pdf file, following extra steps is needed.
5. copy chinese font into the <oraclehome> /reports/printer directory.

6. modify <oraclehome>/tools/common90/uifont.ali,
add a font subsetting entry into this [PDF:SUBSET] section, it's something like
Arial=“simfang.ttf“
This entry tells the report server to substitute all those Arial font into Fangsong font face.(My report is built in Arial font and when run in chinese session, it's changed to Chinese Font.)


      .
remember to restart the report server whenever this file is changed.

Theory of Computer Science Laboratory 2 / Project_part2 2025 Creating a programs for Input-Output devices of the W-Machine p.1 Create the program in assembly language for the W-Machine that: Task 1 (1 point): Read/ take a value from a user (from an external input device). This value is a single-digit number. After that, output to the external device the first letter (in the Latin alphabet) of your name as many times as the value read (value taken from the user). Task 2 (2 points): Change all lowercase (small) letters into their capital equivalents (uppercase). Dot (full-stop) ends the sentence. For example: My name is Bob!!!. -> MY NAME IS BOB. So, you have to take the typed characters from the input device and write them to the output device, but if it is a lowercase letter, you have to convert it to uppercase. You must understand how the prepared program code works. You must present to the teacher how the program works on the computer (with the use of a simulator of the W-Machine). A grade will be determined based on this presentation. Additionally, a report will be required, including the solution created. If you do not present a working program on the computer, the grade will be determined based on the report, but then you will be able to receive a maximum of 2 points (instead of 3 points). The report must be in the form of a single text file ( .txt). The file name must contain the student ID number. The report must begin with the student's information (name in English and Chinese, student's number) laboratory number, report submission date, followed by the assignment task and the solution. The program code should be properly formatted – only one assembly instruction per line. The grade will be reduced for program code that is not formatted correctly. It is not possible to increase the grade/points received for reports that have already been graded. Additional information: Warning: After closing the I/O console, it cannot be reopened - the entire W-Machine simulator must be restarted. List of instructions with mnemonic and code IN 1 sending a character from an external device to the accumulator OUT 2 sending a character from the accumulator to an external device STOP the end of the program ADD add SUB subtract LOAD load STORE store JMP jump JN jump if (ACC) < 0 JZ jump if (ACC) = 0 RPA memory reservation, RST predefined value
最新发布
09-18
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值