I was trying to create an excel file based on my query from the database and it was working. There are some enhancement I want to make for example if the sum of invoice amount is 0 in the query, it won’t enter those column in the excel sheet. Is there any possible way to do this?
Thanks for the reply. I’m checking the amount from the query, it’s just that I’m not sure how to perform this. Like when writing to excel do I check with the generated datatable column name if it equals to “column name” for example, then it won’t write it or delete it after the column has been generated?