[Libreoffice-bugs] [Bug 134699] FILEOPEN: ODT: REPORT: Section "Detail" won't be shown on first page, if content has more than one page

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jul 14 06:07:43 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=134699

--- Comment #22 from Robert Großkopf <robert at familiegrosskopf.de> ---
If you are using Macros to open the report the following should work:

SUB TabSplit
DIM oReport AS OBJECT
DIM oTables AS OBJECT
DIM oTable AS OBJECT
DIM inT AS INTEGER
DIM inI AS INTEGER      
oReport =
ThisDatabaseDocument.ReportDocuments.getByName("Movimientos_por_fecha_y_cuenta").open
oTables = oReport.getTextTables()
FOR inT = 0 TO oTables.count() - 1
        oTable = oTables.getByIndex(inT)
        IF Left$(oTable.name, 6) = "Detail" THEN
                oTable.Split = True
        ENDIF
        NEXT inT
END SUB

The report will be opened by a button, for example in a Base form. Tested this
with the generated file of the report.

Hope someone will fix this in the ReportBuilder.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200714/ff67ab87/attachment.htm>


More information about the Libreoffice-bugs mailing list