Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

This is my sample data i am trying to format

07-Aug-12,By IB-2012220152498-cash ,0,0.00,10938.00,44929.00


Below is the code

VB
Printer.Print Tab(intLINE_START_POS); _
                  strdate; _
                  Tab(intLINE_START_POS + 20); _
                  strparticulars; _
                  Tab(intLINE_START_POS + 55); _
                  strchequeno; _
                  Tab(intLINE_START_POS + 75); _
                  strwithdrawals; _
                  Tab(intLINE_START_POS + 85); _
                  strdeposits; _
                  Tab(intLINE_START_POS + 105); _
                  strbalance


But the problem is it is not coming in a single line.

Can you please tell me what is wrong here..?
Posted
Comments
CHill60 29-Sep-14 12:06pm    
You've tabbed past the right hand end of the page so the remaining details are printed on the next line. Why not create a formatted string and then just print that out ... that way you can right align the numbers on the page rather than the left align that you are currently using.

1 solution

Can you tell me the original data you want to format?
You can format the original data to a string
and print the string

May be you can use the Format function
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900