Printer.Print "你好" 
  Printer.EndDoc
  
怎么在此基础上把打印出来的字设置为 vbRed

解决方案 »

  1.   

    Printer.ForeColor = vbRed
      

  2.   

    我看到了
        Printer.ColorMode = 2
        Printer.Print " ";  ' force a call to StartPage
        Printer.CurrentX = 0  ' restore the position
        Printer.ForeColor = vbRed
        Printer.Print "Page 1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
        Printer.NewPage  ' VB only calls EndPage here
        ' The following three lines are not necessary for NT/Windows 2000
        ' But you need them if you want to make the code work under Windows 9x or Windows Me
        Printer.Print " ";  ' force a call to StartPage
        Printer.CurrentX = 0  ' restore the position
        Printer.ForeColor = vbRed
        Printer.Print "Page 2xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
        Printer.EndDoc