Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Color printing


'this uses VB code, there's also an API called SetTextColor that can be used
Dim iReturn As Long , i As Long
For i = 0 To 15
   Printer.ForeColor = QBColor(i)
   Printer. Print "Hello"
Next i
Printer.EndDoc