The Tehie

The Tehie

  • NA
  • 56
  • 12.4k

How to save the contents of datagridview into the word Doc?

Dec 29 2019 7:13 AM
How to save the entire contents of datagridview into the word document using office.word.interop.dll instead of spire.doc.dll?
 
How to implement the logic of the 1st block of code using Microsoft.Office.Interop.Word.dll? Now I am using third party dll(Spire.Doc.dll), instead of Spire.Doc.dll. I want to use Microsoft.Office.Interop.Word.dll. Please help me to implement this logic using the office word dll.
 
And in the 2nd block of codei tried to implement the logic og 1st block of code , i ahve achieved upto some extent however i coud not implement the complent logic of 1st block of code. it does not go well with the actual need. on button click event of more than once ( several times) all exported datagridview into word document are overlapping with each other so how to avoid the overlapping and save all tables properly(table right below the table)? please guide me to implement the above code logic.
 
All exported Datagridview content is getting merged in a single place (getting merged with each other) is there a way to save them in a well-organized way (recently exported table below the previously exported table)? How to avoid overlapping? on button click event of more than once ( several times) all exported datagridview into word document are overlapping with each other so how to avoid the overlapping and save all tables properly(table right below the table)?
 
Thanks

Answers (1)