Foxtable(狐表)用户栏目专家坐堂 → Excel 报表编程Style


  共有2525人关注过本帖平板打印复制链接

主题:Excel 报表编程Style

帅哥哟,离线,有人找我吗?
freeants
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:二尾狐 帖子:572 积分:3771 威望:0 精华:0 注册:2014/5/8 13:41:00
Excel 报表编程Style  发帖心情 Post By:2014/6/10 11:13:00 [只看该作者]

Dim Style As XLS.Style = Book.NewStyle() '定义新样式
Dim Style1 As XLS.Style = Book.NewStyle() '定义新样式
Dim Style2 As XLS.Style = Book.NewStyle() '定义新样式
style.Font= New Font("Arial Unicode MS",10, FontStyle.regular)
Style1=style
style2=style

style1.font=New Font("Arial Unicode MS",12, FontStyle.bold)
style2.font=New Font("Arial Unicode MS",16, FontStyle.bold)


sheet(1,1).style=style
sheet(2,1).style=style1
sheet(3,1).style=style2

最终结果是
三个单元格  字体都是一样, 是BUG吗
[此贴子已经被作者于2014-6-10 11:13:20编辑过]

 回到顶部