If your are going to use the Desta dw2xls libraries:
- when you plan on using it for powerserver, than you'll have to manually replace all longlong and longptr variables to long / ulong. At least that was the case the last time I did a migration to powerserver. Maybe by now powerserver supports these datatypes? Not sure about that.
Here's an alternative way suggested by Eduardo G:
https://community.appeon.com/index.php/qna/q-a/replacement-for-dw2xls-for-exporting-dws-to-formatted-excel#reply-4973
I'm having a worked out version of what Eduardo G. says. I'm not sure if that code was originally his or someone else's (it surely wasn't mine), but I had to make a few modifications to it. Can't remember why.
Let me know if you need it when you're not going to use dw2xls.
The solution "I" have is slower but might be good enough of what you need it for and also dw2xls is not perfect with freeform datawindows, works great though for Grid type dw's.