阿里云
发表主题 回复主题
  • 382阅读
  • 3回复

报表开发时的字符问题,看看大家不有不什么办法

级别: 论坛粉丝
发帖
1402
云币
2808
up!!

不行,问题还是没有解决,现在我的报表因为有线条,所以是用ar60runb来执行的


对于字符型报表,所有显示正确无误,但这种带线条的报表,不管我怎么调整都不行,我将报表结果保存于html格式后,用ie显示还是乱码,用写字板打开html源码看,发现font face是symbol,而不是我设计报表时使用的宋体,我又试过在设计时改用其他几种中西文字体如,Arial,courier等,仍是不行,又试过修改Solaris主机上(报表服务器)上的uifont.ali以做字体映射,还是毫无效果,产生的 html文件仍然使用的是symbol字体,这是什么原因,请高人提点一下,我都急死了


下面我引用一段产生的html文件代码:

<td width=95 colspan=2 rowspan=2 align=center><font color=#ffff00><font face="symbol">片区</font></font>

<td height=9>

<td width=71 colspan=2 rowspan=2 align=center><font color=#ffff00><font face="symbol">项目编码</font></font>

<td>

<td width=71 rowspan=2 align=center><font color=#ffff00><font face="symbol">描述</font></font>

<td>

<td width=95 rowspan=2 align=center><font color=#ffff00><font face="symbol">本月实际执行数</font></font>

<td>

<td width=95 colspan=2 rowspan=2 align=center><font color=#ffff00><font face="symbol">Cp 1</font></font>

<td>


大家可以看到,这只是字体问题,中文内容已经正确从数据库中取出来了,但字体不是我所需要的,我的映射文件不起作用,下面是uifont.ali文件的内容:


[ Global ] # Put mappings for all surfaces here.

*=fangsong


# Mapping from MS Windows


Arial = fangsong

"Courier New" = fangsong

"Times New Roman" = fangsong

Modern = fangsong

"MS Sans Serif" = fangsong

"MS Serif" = fangsong

"Small Fonts" = fangsong


# Mapping from Macintosh

"New Century Schlbk" = "new century schoolbook"

"New York" = times

geneva = helvetica



#===============================================================

[ Printer ] # Put mappings for all printers here.

*=fangsong



#===============================================================

[ Printer:PostScript1 ] # Put mappings for PostScript level 1 printers here.

*=fangsong


# Sample Kanji font mappings

...UltraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC

...UltraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS

...ExtraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC

...ExtraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS

...Light..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC

...Light..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS

...DemiLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC

...DemiLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS

.....JEUC = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..JEUC

.....SJIS = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..SJIS


# Mapping from MS Windows

Roman = palatino

Script = "fangsong"

FixedSys = courier

System = fangsong


# Mapping from Macintosh

"Avant Garde" = "itc avant garde gothic"


# Mapping from Motif display

fixed = courier

clean = times

lucidatypewriter = courier

lucidabright = times



#===============================================================

[ Printer:PostScript2 ] # Put mappings for PostScript level 2 printers here.

*=fangsong


# Sample Kanji font mappings

...UltraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC

...UltraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS

...ExtraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC

...ExtraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS

...Light..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC

...Light..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS

...DemiLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC

...DemiLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS

.....JEUC = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..JEUC

.....SJIS = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..SJIS


# Mapping from MS Windows

Roman = palatino

Script = "itc zapf chancery"

FixedSys = courier

System = fangsong


# Mapping from Macintosh

"Avant Garde" = "itc avant garde gothic"


# Mapping from Motif display

fixed = courier

clean = times

lucidatypewriter = courier

lucidabright = times



#===============================================================

[ Printer:PCL5 ] # Put mappings for PCL 5 printers here.

*=fangsong


helvetica = univers

times = "cg times"

clean = "antique olv"

fixed = courier

lucida = univers

lucidabright = "cg times"

lucidatypewriter = courier

"new century schoolbook" = univers

terminal = "line printer"



#===============================================================

[ Display ] # Put mappings for all display surfaces here.

*=fangsong








开发, 字符, 解决, html, 乱码






级别: *
发帖
*
云币
*


总不能胡说吧  报表开发时的字符问题,看看大家不有不什么办法-


帮你顶一顶
级别: *
发帖
*
云币
*


没有人理你!我很同情你,但是我有帮不了你
级别: *
发帖
*
云币
*


时间不等人呀,只有有空再来 玩它,我现在把它做在本地,不用11i的报表服务器
发表主题 回复主题
« 返回列表
«12345678910»
共10页
上一主题下一主题

限100 字节
批量上传需要先选择文件,再选择上传
 
验证问题: 阿里云官网域名是什么? 正确答案:www.aliyun.com
上一个 下一个
      ×
      全新阿里云开发者社区, 去探索开发者的新世界吧!
      一站式的体验,更多的精彩!
      通过下面领域大门,一起探索新的技术世界吧~ (点击图标进入)

      版权声明

      开发者论坛为你提供“ 报表开发时的字符问题,看看大家不有不什么办法”的内容,论坛中还有更多关于 “ 报表开发时的字符问题,看看大家不有不什么办法” 的内容供你使用,该内容是网友上传,与开发者论坛无关,如果需要删除请联系zixun-group@service.aliyun.com,工作人员会在5个工作日内回复您。