Export Datawindow to excel in powerbuilder
<p>I want to export all columns in a data window to excel in power builder.
After I select All the data displayed in a window, then I should export them to excel.</p>

<pre><code>    e.g integer li_ret

li_ret = exporttoexcel(dw_excel, 'c:\doc\datawindow.xls')
if li_ret = 1 then
   return 0
else
   return -1
end if
</code></pre>