Good day

I would like to write a code which will aprropriately align text under each heading. For example I have columns Name, Surname and Comments, when the text is long it is not correctly aligned. The program prints a report with user names and their comments. This is the code I have :

Printer.Print "Author"; Spc(30); "Name"; Spc(30); "Notes" - print headings and underline them

Printer.Print "---------"; Spc(30); "--------"; Spc(30); "--------"

For i = 1 To mLngNumOfNotes

' Print Notes

Printer.Print Name(i); Spc(28); Surname(i); Spc(15); Comment(i)
Printer.Print 'Print empty line

Next i

Thank you