Click here to Skip to main content
13,189,324 members (68,829 online)
Rate this:
Please Sign up or sign in to vote.
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]
Posted 27-Nov-12 8:12am
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.
mark merrens 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171016.2 | Last Updated 27 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100