Ok, here's my working code:
VB Code:
For i = 0 To MSHFlexGrid1.Rows - 1 Printer.FontSize = 8.25 XCounter = 0 For f = 0 To MSHFlexGrid1.Cols - 1 If f = 2 Or i = 0 Or f = 6 Then Printer.Font = 9 Printer.FontBold = True Else Printer.Font = 8.25 Printer.FontBold = False End If Printer.CurrentX = XCounter Printer.ForeColor Printer.Print MSHFlexGrid1.TextMatrix(i, f); XCounter = XCounter + lngMaxWidth Next Printer.Print Next Printer.EndDoc
What I'd like to add/change is that with the above code it is plain white paper with black text. I'd like to do an alternating color row on every other line to make it a bit easier to read, but can't seem to figure out how to pull it off. Looked through MSDN, and here, and can't find anything that would work in this case.
I don't care about changing the color on the actual onscreen control it is loaded in, just the output. Paintpicture isn't doing what I want, so I'm lost.
Any thoughts?
Guph


Reply With Quote