|
-
May 23rd, 2013, 08:38 PM
#1
Thread Starter
Fanatic Member
string printing, should be easy but cant figure it out!
Hi All,
I have had code that prints text all lined up line by line with a equal width font, this is fine, until we upgraded and allowed more space for a description.
now the description can be 30 chars long and when it is it prints fine. when it is less than 30 chars it fills the rest with spaces (im using padright for that)
again normally fine, but once it goes over to the next line they stop lining up.
for eg

the first item is padded to equal 30 spaces then we have qty of 1 then its price
the second item has 30 chars of actual letters. the font is equal width so 30 chars and 30 padded chars should be the same no?
please help.
My CodeBank Submissions
- Listbox with transparency and picture support - Click Here
- Check for a true internet connection - Click Here
- Open Cash drawer connected to receipt printer - Click Here
- Custom color and size border around form - Click Here
- Upload file to website without user logins, includes PHP - Click Here
- List All Removable USB Storage Devices - Click Here
- Custom On/Off Slide Control - Click Here
- Insert multiple rows of data into one database table using parameters - Click Here
- Trigger USB/Serial Cash Drawer - Click Here
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
|