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


  共有1499人关注过本帖树形打印复制链接

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

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


加好友 发短信
等级:超级版主 帖子:106675 积分:542564 威望: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 

 回到顶部