Dim s As Strings = "ABC"rx = New prt.RenderTextrx.Text = srx.Style.Font = New Font("宋体", prt_Upfontsize, FontStyle.Bold) '设置字体
此主题相关图片如下:错误.jpg
红色的代码想设置字体为粗体时为什么会出错,如果字体大小中间不用变量,而是下面这样就没问题
rx.Style.Font = New Font("宋体", 18, FontStyle.Bold) '设置字体
谢谢!