-
How would you centre text when printing it?
And how would you line the contents of a listbox up. For example i have 2 list boxes and want them to print out on the smae piece of papoer. On the first listboxes are descriptions (different lengths) and in the second are prices How would i line up the decimal point with the one above when printing.
The two listboxes are being printed side by side
Thanx Tingrin47
-
I believe you have to align it yourself.
You could vbTab the entries into the listbox.
Code:
List1.additem vbTab & item
And then put them in a textbox and print it.
Code:
For a = 0 To List1.ListCount - 1
Text1.Text = Text1.Text & List1.List(a) & Chr$(13) & Chr$(10)
Next a
For b = 0 To List2.ListCount - 1
Text1.Text = Text1.Text & List2.List(b) & Chr$(13) & Chr$(10)
Next b
Printer.Print Text1.text
Printer.EndDoc