Foxtable(狐表)用户栏目专家坐堂 → font.tostring()存到数据库,如何从数据库文本得到字体呢


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

主题:font.tostring()存到数据库,如何从数据库文本得到字体呢

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107492 积分:546745 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2017/12/5 8:57:00 [只看该作者]

应该这样生成字体字符串
Dim fc As new FontConverter()
Dim s As String = fc.ConvertToString(Tables("表A").Font)
Output.Show(s)

还原这样
Dim newFont As Font = fc.ConvertFromString(s)
Tables("表A").Font = newFont 

 回到顶部