首页 相关文章 VB如何将DBgrid印出来

VB如何将DBgrid印出来

->OptionExplicit
  PrivateSubCommand1_Click()
  DimIAsLong,JAsLong,KAsLong
  DimPrintStringAsString
  ForI=0ToData1.Recordset.RecordCount-1
  IfK=DBGrid1.VisibleRowsThen
  DBGrid1.Scroll0,DBGrid1.VisibleRows
  K=0
  EndIf
  ForJ=0ToDBGrid1.Columns.Count-1
  PrintString=PrintString&
  DBGrid1.Columns(J).CellText(DBGrid1.RowBookmark(K))&"/"
  Next
  Printer.PrintPrintString
  PrintString=""
  K=K 1
  DoEvents
  Next
  EndSub
  
  PrivateSubForm_Activate()
  Data1.Recordset.MoveLast[ 查看全文 ]

2016-02-19 标签:

VB如何将DBgrid印出来的相关文章

手机页面
收藏网站 回到头部