Export BD content to a WORD table

Asked

Viewed 29 times

1

Well, I was doing a job and I came across this situation: I need to export certain content to Word, but this content must be in a table of the same. How could I do a While to create the Rows and Columns automatically inside the C# ?

For now my Select is like this

  "SELECT ID_PRODUTO AS 'ID', NOME AS 'NOME', QTD AS 'QUANTIDADE',
   VLR_UNIT AS 'VALOR UNITÁRIO' 
   FROM ESTOQUE"

It returns me data that would result in 8 rows of 4 columns each.

  • Display the C# code where you are doing this query and creating the Word document

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.