I am using:
Printer.Font.Name = "Courier"
Printer.Font.Size = 8
Printer.Print txtData.Text
Printer.EndDoc
Because txtData contains columns of text and/or numbers, I do not want to use a variable width font.
Both the Form and Textbox fonts are set to Courier.
But the code above does not actually change the font to Courier on the printer.
I know this is an old problem, but I can't find the solution on Tek-Tips or anywhere on the net.
I have seen that some programmers use Doevents after setting the new font, or use Printer.Print "" before printing the data.
Neither of these work for me.
In another program I am using Printer.Font.Name = "QuickType Mono"
and that works. But it doesn't work in this program.
Can someone explain this?
Printer.Font.Name = "Courier"
Printer.Font.Size = 8
Printer.Print txtData.Text
Printer.EndDoc
Because txtData contains columns of text and/or numbers, I do not want to use a variable width font.
Both the Form and Textbox fonts are set to Courier.
But the code above does not actually change the font to Courier on the printer.
I know this is an old problem, but I can't find the solution on Tek-Tips or anywhere on the net.
I have seen that some programmers use Doevents after setting the new font, or use Printer.Print "" before printing the data.
Neither of these work for me.
In another program I am using Printer.Font.Name = "QuickType Mono"
and that works. But it doesn't work in this program.
Can someone explain this?