[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gambas-bugtracker] Bug #2949: Bug gb.report2 Page Break
[Thread Prev] | [Thread Next]
- Subject: [Gambas-bugtracker] Bug #2949: Bug gb.report2 Page Break
- From: <bugtracker@xxxxxxxxxxxxxx>
- Date: Thu, 03 Oct 2024 21:00:25 GMT
- To: msdesarrollo21@xxxxxxxxx,bugtracker@xxxxxxxxxxxxxxxxxxxxxx
http://gambaswiki.org/bugtracker/edit?object=BUG.2949&from=L21haW4- Omar MORENO reported a new bug. Summary ------- Bug gb.report2 Page Break Type : Bug Priority : Medium Gambas version : Unknown Product : Unknown Description ----------- 1. Any object attempted to be placed in the report generates the following error: This Application has raised an unexpected erros and must abort. Null Object (#13) Fform.Control_Drop.3512 2. The `BeforeData()` events of any container do not generate a sequential cycle according to the number of rows assigned to its `DataCount` property. 3. The `Data(Index Integer)` events of objects (`ReportLabel`, `ReportTextLabel`) do not generate a sequential cycle according to the number of rows assigned to the `DataCount` property of their parent container. 4. The `ForceNewPage` property seems to only work in the `Data(Index Integer)` event of objects (`ReportLabel`, `ReportTextLabel`), but it appears that the cycle of its Index is affected incorrectly. I am attaching a small example that includes: • A vector of 9 elements: [A, A, A, B, B, B, C, C, C] • A SpinBox to determine the number of elements to be printed. • A CheckBox to enable page breaks based on the column containing the letters. • Three RadioButtons to indicate which event will trigger a page break when the letter in the data changes. • A ReportView to display a preview of the report. • Three TextAreas to show how cycles are generated in each selected event when the CheckBox for "Page Break using column 2" is active. The `BeforeData` event performs the following steps: 1) Executes multiple times at index zero according to the `DataCount` property of its container. 2) Then executes a cycle from index zero to the value of `DataCount` minus one. 3) Finally, it repeats the cycle from step 2. Note: The results at the indices are different when: • The total number of rows equals one. • When the report generates more than one page. System information ------------------ [System] Gambas=3.19.5 OperatingSystem=Linux Distribution=Ubuntu 24.04.1 LTS (Noble Numbat) Kernel=6.8.0-45-generic Architecture=x86_64 Cores=4 Memory=7639M Language=es_ES.UTF-8 Platform=wayland Desktop=UBUNTU DesktopResolution=96 DesktopScale=8 WidgetTheme=yaru Font=Ubuntu Sans,11 [Programs] dpkg=Programa de gestión de paquetes de Debian `dpkg' versión 1.22.6 (amd64). gcc=gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0 msgmerge=msgmerge (GNU gettext-tools) 0.21 rpmbuild=RPM version 4.18.2 [Libraries] Cairo=libcairo.so.2.11800.0 Curl=libcurl.so.4.8.0 DBus=libdbus-1.so.3.32.4 GDK2=libgdk-x11-2.0.so.0.2400.33 GDK3=libgdk-3.so.0.2409.32 GStreamer=libgstreamer-1.0.so.0.2402.0 GTK+2=libgtk-x11-2.0.so.0.2400.33 GTK+3=libgtk-3.so.0.2409.32 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.134.0.0 QT5=libQt5Core.so.5.15.13 RSvg=librsvg-2.so.2.50.0 SDL=libSDL2-2.0.so.0.3000.0 SQLite 3=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEBUGINFOD_URLS=https://debuginfod.ubuntu.com DESKTOP_SESSION=ubuntu DISPLAY=:0 GB_GUI=gb.gtk3 GDMSESSION=ubuntu GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop GIO_LAUNCHED_DESKTOP_FILE_PID=9182 GJS_DEBUG_OUTPUT=stderr GJS_DEBUG_TOPICS=JS ERROR;JS LOG GNOME_DESKTOP_SESSION_ID=this-is-deprecated GNOME_SETUP_DISPLAY=:1 GNOME_SHELL_SESSION_MODE=ubuntu GSM_SKIP_SSH_AGENT_WORKAROUND=true GTK_MODULES=gail:atk-bridge HOME=<home> IM_CONFIG_PHASE=1 INVOCATION_ID=8e731d9b9c644d93afdc88ca866028cb JOURNAL_STREAM=8:19715 LANG=es_ES.UTF-8 LANGUAGE=es_ES.UTF-8 LC_ADDRESS=es_PA.UTF-8 LC_ALL=es_ES.UTF-8 LC_IDENTIFICATION=es_PA.UTF-8 LC_MEASUREMENT=es_PA.UTF-8 LC_MONETARY=es_PA.UTF-8 LC_NAME=es_PA.UTF-8 LC_NUMERIC=es_PA.UTF-8 LC_PAPER=es_PA.UTF-8 LC_TELEPHONE=es_PA.UTF-8 LC_TIME=es_PA.UTF-8 LOGNAME=<user> MANAGERPID=2755 MEMORY_PRESSURE_WATCH=/sys/fs/cgroup/user.slice/user-1000.slice/user@1000.service/session.slice/org.gnome.Shell@wayland.service/memory.pressure MEMORY_PRESSURE_WRITE=c29tZSAyMDAwMDAgMjAwMDAwMAA= PAPERSIZE=letter PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin PWD=<home> QTWEBENGINE_DICTIONARIES_PATH=/usr/share/hunspell-bdic/ QT_ACCESSIBILITY=1 QT_IM_MODULE=ibus QT_LOGGING_RULES=*.debug=false SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/2997,unix/<hostname>:/tmp/.ICE-unix/2997 SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh SYSTEMD_EXEC_PID=3027 TZ=:/etc/localtime USER=<user> USERNAME=<user> WAYLAND_DISPLAY=wayland-0 XAUTHORITY=/run/user/1000/.mutter-Xwaylandauth.K64LU2 XDG_ACTIVATION_TOKEN=gnome-shell/Gambas 3/3027-7-<hostname>_TIME15682599 XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg XDG_CURRENT_DESKTOP=ubuntu:GNOME XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop XDG_MENU_PREFIX=gnome- XDG_RUNTIME_DIR=/run/user/1000 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=ubuntu XDG_SESSION_TYPE=wayland XMODIFIERS=@im=ibus _=/usr/bin/gnome-session ----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----