Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: wordwrap In printing List ListView
You should use some proffesional printing tools, like Data reports (free) in Vb6, or Crystal reports (not free). With Crystal reports all you need is to point it to a database wheere data is stored, CR will do the rest (like wrapping text in several lines, as in your example).
Sending commands directly to printer will demand much more work to be done. To my knowledge, you would need to measure letters height and width, and page height and width, so you could calculate number of letter that can fit in one row. I alwasy used CR, so I never needed to write this code, and since you say you are a beginner, I suggest that using some 3d party software.
____________________________
If you find the answer helpful, please mark this topic as solved.
|