Hi.
We have a function in our application which takes any datawindow, finds all visible columns and copies them to another datawindow for export til Excel using dw_excel.saveas().
This is done because we only want to export the visible columns to Excel.
However, yesterday a customer reported that our application quits without any error or message.
I've debugged the code and PowerBuilder quits at this codeline:
dw_saveas.object.data = dwo.object.data.current
I've tried the following replacements, but I get the same behavior:
dwo.rowscopy(1,dwo.rowcount(),primary!,dw_saveas,dw_saveas.rowcount(),primary!)
And:
dwo.getfullstate(lbl_dw)
dw_saveas.setfullstate(lbl_dw)
The datawindow contains about 330.000 rows.
If I change the parameters a bit so that the datawindow contains "only" 290.000 rows, everything works as it should.
Is there any limitation for the size of a datawindow when it comes to copying?
Regards,
Bjarne Anker
Maritech Systems AS
Norway
Users wanting to run huge reports for extraction into excel is a fairly common request, and IMO one of the few reasons to compile into 64 bit. Other than the c# approach, a 64 bit pb exe could be used just for doing these sorts of extractions either as a process server or called from an IIS web service.