If MyRecord.Fields.count >= 10 Then WdApp.ActiveDocument.PageSetup.Orientation = wdOrientLandscape Else WdApp.ActiveDocument.PageSetup.Orientation = wdOrientPortrait End If '报表名称 WdApp.Selection.Font.Bold = wdToggle WdApp.Selection.Font.Size = 14 WdApp.Selection.TypeText (sbbmc) WdApp.Selection.ParagraphFormat.lignment = wdAlignParagraphCenter WdApp.Selection.Font.Bold = wdToggle WdApp.Selection.TypeParagraph '报表单位名称 WdApp.Selection.Font.color = wdColorBlack WdApp.Selection.Font.Size = 11 WdApp.Selection.TypeText (UnitName) WdApp.Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter WdApp.Selection.TypeParagraph '报表期别 WdApp.Selection.TypeText (BbDate) WdApp.Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter WdApp.Selection.TypeParagraph WdApp.Selection.TypeParagraph '生成列头 'wdApp.Selection.HomeKey wdLine, wdExtend 'dApp.Selection.Font.Bold = wdToggle
WdApp.ActiveDocument.Tables.Add WdApp.Selection.Range, rowMax, colMax Dim i As Integer Do   上一页 [1] [2] [3] [4] [5] [6] 下一页 |