我用表格打印 代码如下 能不能把字体变大些DataTables("毛纱进货单").StopRedraw
Tables("毛纱进货单").grid.styles.Normal.Border.Color = Color.black
Tables("毛纱进货单").grid.styles.Normal.Border.Style = 1
Tables("毛纱进货单").grid.styles.Normal.Border.width = 5
Dim t As Table = Tables("毛纱进货单")
t.PrintInfo.OnlyPrintTitleOnFirstPage = False
With Tables("毛纱进货单").PrintInfo
.Title ="毛纱进货明细"
.subtitle = "毛纺厂:" & e.Form.Controls("combobox1").value
.PageFooter = "第[PageNo]页,共[PageCount]页"
.PageFooterLine = True
.PaperKind = 9
.FitIntoPage = True
End With
Tables("毛纱进货单").Print(True,False)
Tables("毛纱进货单").grid.styles.Normal.Border.Color = Color.black
Tables("毛纱进货单").grid.styles.Normal.Border.Style = 1
Tables("毛纱进货单").grid.styles.Normal.Border.width = 1
DataTables("毛纱进货单").ResumeRedraw