Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to make long sentences to multiline sentence in VB6?

Dear I want to print the following in Paper (directly from VB6 not using Microsoft Word or Rich Text Box.) But it prints ..in a single line. and also I am using lot of String, Varaiables alongwith paragraph etc....

How to print the following sample paragraph alongwith using string and variables.
I want the result in multiple lines. How to break the line (end of the line to next line).
Thanks in advance.

sample paragraph:

"My Dear Devotees Be advised that you are being graded on your effort, your purity, your vibration, your Light. Do not take your human life lightly, that it is an ordinary thing, like so many human beings do. It is not at all ordinary. Human life is a tremendous opportunity to be the God of this universe eventually, as the result of spiritual knowledge and practice. Cherish, honor and respect yourself and others. Move out of the crowd, away from complacency and enjoyment of sensory pleasures as the end all of life. You have reached a critical point in your evolution where you know there is more to life. You know what the goal of human life is, namely, to learn how not to be born again. Do you know how not to be born again? I have been teaching this again and again. Atma vidya, knowledge of Atma, living as Atma, is the way forward. It is not easy to realize this. That is why I am telling you again and again not to waste this life’s sojourn, but to apply yourself, as per all these Messages I am giving you, as well as all My Teachings I have left you with. - See more at: http://saibabadisciplerelationship.com/category/messages-from-sathya-sai-baba/#sthash.eKzZnbtP.dpuf"
Posted

1 solution

In formats like Word or RTF, the paragraphs are separated by a Microsoft-specific line separator, which is CR LF (0xD followed by 0xA). In general case, a line separator is platform-specific:
http://en.wikipedia.org/wiki/Line_separator[^].

That is, if you want a paragraph, write a single line; the formats will wrap this single line according to the width defined for the paragraph format or the width or the page. A line separator acts as a separator between paragraphs. Unicode separators (please see the article referenced above) also work, but, in practice, by some reasons, rarely used.

Need some really serious advice? Never use VB6. I understand that sometimes you have to do it for work, but use every chance to get rid of such work. It can turn into wasting your like for nothing.

—SA
 
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