David, I’ll save you some time poring through the code: Yes, the register and reports are wildly different:
Reports are HTML composed from tables produced by the report’s query and computations. That HTML is fed to a WebKitGtk WebView for display via a temporary file that can be copied to a permanent location using the report tab’s export button. The register is a sort of list view made custom code and drawn directly on a Cairo canvas. GnuCash’s CSV export works directlly from the in-memory representation of the book, independent of the register code. Regards, John Ralls > On Oct 23, 2026, at 01:42, David Cousens <[email protected]> wrote: > > Hi Adrien, > > I had realised that was what Geoff was trying to do. I think the > problem is a report is not an account register, although it appears as > a tab in the window also displaying them, but is simply a rendered HTML > page. I haven't yet had a look at the code but I would suspect the code > for displaying a report is different from that for an account register. > From memory, nbut it has been quite a while since I last looked at it, > the account register code wasn't a simple GTK structure and GTK has no > facility for exporting from the TreeView or ListView data structures. > Was it ever exporting reports in CSV in previous versions? It isn't > something I do very often so I'm not that sure about it. It may be > possible in principle to add an export in CSV but I didn't think that > had been implemented. I only remember either copy and pasting from the > window or exporting and importing the HTML. > > Cheers > David > > On Thu, 2026-10-22 at 16:12 -0500, Adrien Monteleone wrote: >> David, >> >> Geoff is referring to "File > Export > Export Active Register to CSV" >> as >> an option instead of using the HTML export of the Account Report when >> viewing Find results. (because allegedly, Numbers.app doesn't like >> importing the HTML file as a table, but will of course take CSV) >> OpenOffice can do the HTML import, but Geoff doesn't like the result. >> (not sure of the process being used to do that import, I'm still >> awaiting an answer on that count.) >> >> When that is clicked, the pop-up to configure that export is no >> longer >> showing up. There appears to be a window stacking or geometry issue. >> >> Regards, >> Adrien >> >> On 10/22/26 14:54, David Cousens wrote: >>> I don't think there is any option to export a report as a CSV in >>> GnuCash 5.17 and I don't think it existed previously. File->Export >>> Reports only exports the HTML file as does the Toolbar Export >>> button. >>> Unfortunately the only option is to first import into >>> LibreOffice/OpenOffice/Excel, then export as a CSV and then import >>> that >>> into Numbers. HTML from 5.17 imported to LibreOffice works fine, at >>> least on Linux, after you delete the document headers once it is >>> imported >> >> _______________________________________________ >> gnucash-user mailing list >> [email protected] >> To update your subscription preferences or to unsubscribe: >> https://lists.gnucash.org/mailman/listinfo/gnucash-user >> ----- >> Please remember to CC this list on all your replies. >> You can do this by using Reply-To-List or Reply-All. > > -- > David Cousens > _______________________________________________ > gnucash-user mailing list > [email protected] > To update your subscription preferences or to unsubscribe: > https://lists.gnucash.org/mailman/listinfo/gnucash-user > ----- > Please remember to CC this list on all your replies. > You can do this by using Reply-To-List or Reply-All. _______________________________________________ gnucash-user mailing list [email protected] To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.
