This furiously look like HomeWork.
You should be able to device something by yourself, it is an easy task.
Quote:
i checked a lot in google, and many sites..couldn't find any solutions
It is simply unbelievable. My Google search gave 4 solutions in the first page of answers.
I guess you really need to learn how to use Google.
Your question is 2 unrelated questions
1) the conversion
2) the lines split
Each question have plenty of solutions on internet. if you look for a ready solution that combine both, it may be more complicated to find.
Can you show what Google search you have done?
[Update]
for the lines split:
All the problem is that chars are variable size.
if you can print the string to a fields with enough height, activating a LineWrap mode should do the trick.
Otherwise, your field should have a method that gives you the width of a string and you see if it fit by comparing with the width of field.
Google with something like
string width fit
Need to know more details about the field you copy to.