Click here to Skip to main content
15,896,727 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created invoice in which it generated a rupees in words but i have to dive this rupees line in two line because of long length. How can i do this?
Posted

1 solution

There are a couple of ways to do it, but to be honest, the simplest solution would be to change the way you are output it. If you are asking this question, then you are probably using one of the point based overloads. Instead of your current DrawString, look to use one of the overloads that takes a rectangle: http://msdn.microsoft.com/en-us/library/21kdfbzs.aspx[^] for example.

The system will than handle the wrapping for you.
 
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