Hi Friend:
In my C# Windows Application. I met a problem:
I have create a template doc file. int this file I need replace some strings like, CustomerFirstName, CustomerLastName.CustomerDivision, CompanyName, etc.
the format in doc like:
CustomerFristName CustomerLastname
CustomerDivision
Companyname
I can open this doc file and replace these string no prblem. but sometime some field is empty, for example, CustomerDivision is emply, I dno't want to keep a empty line in doc file and I want to delete this empty line from doc file. I don't know how to do it.
Thanks.
In my C# Windows Application. I met a problem:
I have create a template doc file. int this file I need replace some strings like, CustomerFirstName, CustomerLastName.CustomerDivision, CompanyName, etc.
the format in doc like:
CustomerFristName CustomerLastname
CustomerDivision
Companyname
I can open this doc file and replace these string no prblem. but sometime some field is empty, for example, CustomerDivision is emply, I dno't want to keep a empty line in doc file and I want to delete this empty line from doc file. I don't know how to do it.
Thanks.