Hi I am Yogesh and I have designed a C# application to To Print ICards Of School. Here I am sending data from my application to a CDR FILE (Already Created ) Which Contains ADDRESS Text Field..Now I Need to Print Address(which contains 60 characters or more) on this Text field .
I Have Used The following c# Code.. To Replace Address text field that contains text 'Address '.....
s.Text.Replace('Address',"Text To be replaced .......")...here s is Active shape...
This Works Fine But How can i WRAP TEXT....of Address field....please Any ideas will be appreciated..
Please help......
What type of text is your active shape ('s'). It seems that you have created an artistic text object. Try creating a paragraph text object and set the X & y coordinates for the object.
A paragraph text object will wrap the text, but not necessarily at the correct place for a properly formatted address line. For example, a house number might get wrapped to a different line from the street name or a street name of more than one word might be split.
To do the job properly, you need to preformat your addresses, either by replacing some of the spaces with non-breaking spaces so that words which belong together stay together, or by ensuring that your addresses contain line breaks in the correct position.
Depending on your country's address formatting you may be able to write a procedure to recognise where the line breaks belong or you may have to do this as a manual process.