Hi,
How to create word document with add styles by using c# language..
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Megan FosterPosted Feb 6, 2015, 3:52 AM
Also here is a small demonstration sample how to add and use styles:
The code uses this C# component for Word documents and I believe you will find its much easier to work with it rather then hassling with COM based Word Interop in C#.
Jasna KozeljPosted Mar 10, 2014, 2:46 PM
Selva GanapathyPosted Feb 20, 2014, 3:12 AM
You can create a Word Document in C# using "Microsoft.Office.Interop.Word" as like as following code snippet.
private Microsoft.Office.Interop.Word.ApplicationClass newWord= new Microsoft.Office.Interop.Word.ApplicationClass();
Also to edit its style use "Range" option provided in the same class to insert our data as per our desire.
Regards,
Selva Ganapathy K