|
-
May 17th, 2008, 06:03 AM
#1
Thread Starter
Junior Member
Aligning text using Printer.print
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|