(整)D片形式打印MSHFlexGrid
(整)D片形式打印MSHFlexGrid
@N方法可以W。
c:巍缺c:效果差,不能一次打印全部。
————————-
Option Explicit
Private Sub Command1_Click() Printer.PaintPicture MSFlexGrid_Name.Picture, 0, 0 Printer.EndDoc Dim old_width As Integer MSFlexGrid_Name.Width = Printer.Width MSFlexGrid_Name.Width = old_widthEnd Sub
Private Sub Form_Load() Dim i As Integer Dim j As Integer Me.MSFlexGrid_Name.Cols = 5 Me.MSFlexGrid_Name.Rows = 20 For i = 0 To 19 For j = 0 To 4 Me.MSFlexGrid_Name.TextMatrix(i, j) = i Next NextEnd Sub