Click here to Skip to main content
15,068,164 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello Friends ,

I m creating a bill printing software. For that purpose the company has given us the template in word format. we have converted it to html format and divide it into 3 parts as header , body and footer part.

i m reading those templates in string format and replacing the characters in that with replace command.
eg Cont = Cont.Replace("$NAME$","ABC KKK");

My replacement works fine.

My Only problem is the white spaces which creeps in whenever i m creating the word file.
i m using word 2007. kindly help me.

[edit]SHOUTING removed, urgency deleted - OriginalGriff[/edit]
Updated 27-Nov-12 8:13am
OriginalGriff 27-Nov-12 14:14pm
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
Urgency deleted: It may be urgent to you, but it isn't to us. All that your stressing the urgency does is to make us think you have left it too late, and want us to do it for you. This annoys some people, and can slow a response.
R. Giskard Reventlov 27-Nov-12 18:51pm
An example might help.

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