本文介绍了更改标题文本字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的代码是

VsfgShowRpt.PrintParameters.PrintDocument.DefaultPageSettings.Margins.Left = 5.0

VsfgShowRpt.PrintParameters.PrintDocument.DefaultPageSettings.Margins.Right = 50.0

VsfgShowRpt.PrintParameters.PrintDocument.DefaultPageSettings.Margins.Top = 150.0

VsfgShowRpt.PrintParameters.PrintDocument.DefaultPageSettings.Margins.Bottom = 150.0



VsfgShowRpt.PrintGrid(DlblHeading.Text,PrintGridFlags.ShowPreviewDialog,s,Page No)



i想要将标题strig的字体大小更改为12

my code is
VsfgShowRpt.PrintParameters.PrintDocument.DefaultPageSettings.Margins.Left = 5.0
VsfgShowRpt.PrintParameters.PrintDocument.DefaultPageSettings.Margins.Right = 50.0
VsfgShowRpt.PrintParameters.PrintDocument.DefaultPageSettings.Margins.Top = 150.0
VsfgShowRpt.PrintParameters.PrintDocument.DefaultPageSettings.Margins.Bottom = 150.0

VsfgShowRpt.PrintGrid(DlblHeading.Text, PrintGridFlags.ShowPreviewDialog, s, "Page No")

i want change the header strig s font size to 12

推荐答案

VsfgShowRpt.PrintParameters.HeaderFont = New Font("Tahoma", 10, FontStyle.Bold)


这篇关于更改标题文本字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-24 12:02