I am trying to format the out put of SQL query in excel, using post processing. Code is working fine, when i have a small data set. When the the output of SQL query has more data, the post processing is not completing and seems to freeze around 75%. I have included messages boxes to see where the code is failing, but all the message boxes are being displayed. Once I stop the post processing by force and try to generate the report for a different project with a smaller data set, excel report for the larger data set also comes up in the background, with a long number in the name and looks like it is being saved in Temp folder. I would like to know if any one else experienced similar situation and any steps to taken to fix this issue.
Thanks