Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Word
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 9:12am
Edited 27-Nov-12 9:13am
(no name)1.2M
v2
Comments
OriginalGriff at 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 at 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
0 OriginalGriff 280
1 Jochen Arndt 150
2 Kornfeld Eliyahu Peter 120
3 PIEBALDconsult 110
4 Richard MacCutchan 105
0 OriginalGriff 6,055
1 DamithSL 4,621
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,500
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 27 Nov 2012
Copyright © CodeProject, 1999-2014
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