MS Word and Excel from C#
-
I have one multiline textbox. I want to open Microsoft word and write textbox contents on MS word. One more thing : I want to write DataGridview Table onto MS ecxel sheet. ??? thanx in advance....
-
I have one multiline textbox. I want to open Microsoft word and write textbox contents on MS word. One more thing : I want to write DataGridview Table onto MS ecxel sheet. ??? thanx in advance....
You need to use MS Office Interops
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
I have one multiline textbox. I want to open Microsoft word and write textbox contents on MS word. One more thing : I want to write DataGridview Table onto MS ecxel sheet. ??? thanx in advance....
I want a toasted cheese sandwich but sometimes we can't always have what we want. Look up the interops like t'other member said, and then if you get stuck you can ask about the specific problem you are having and people will be happy to help.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
-
I want a toasted cheese sandwich but sometimes we can't always have what we want. Look up the interops like t'other member said, and then if you get stuck you can ask about the specific problem you are having and people will be happy to help.
My current favourite word is: I'm starting to run out of fav. words!
-SK Genius
Thanks for quick reply... Problem of MS Word from C# has been done. Now i want to Write Tabular data from DataGridView to MS Excel Sheet. I want Excel sheet also in Tabular format. Opening of Excel sheet and writing data into it, has also been done. But format of DataGridView into Excel sheet is not coming.