nextcloud / richdocuments

📑 Collabora Online for Nextcloud
https://nextcloud.com/collaboraonline
349 stars 115 forks source link

Print Dialog in Spreadsheet View does Nothing #3701

Closed LinuxSpielKind closed 4 months ago

LinuxSpielKind commented 4 months ago

Describe the bug While having a spread file opened with Nextcloud Office a click on the button "Print" under the menu "Files" does nothing. The beavior with all other Office documents (presentation and text document have been tested) a PDF is rendered an the print dialog of the browser is opened. The difference to the later documents is, that a sub menu with "active page" and "all pages" is displayed. Unfortunately I don't see anything of interest in the browser logs. A workaround is hitting CTRL+P what seems to open the "All Pages" option.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Files'
  2. Click on 'Print'
  3. Select either "active page" or "all pages"
  4. Nothing is displayed

Expected behavior I would expect, that a PDF is rendered, according to the selected view option, and the print dialog of the browser is opened Screenshots grafik

Client details:

Operating system:

Web server:

Database:

PHP version:

Nextcloud version:

Version of the richdocuments app 8.3.7 Version of Collabora Online Collabora Online Development Edition 24.04.1.4 f12ee1f Configuration of the richdocuments app

{
    "apps": {
        "richdocuments": {
            "types": "prevent_group_restriction",
            "installed_version": "8.3.7",
            "enabled": "yes",
            "public_wopi_url": "https:\/\/nextcloud.intern.example.com",
            "wopi_allowlist": "192.168.20.8,127.0.0.1\/8,192.168.0.0\/16,172.16.0.0\/12,10.0.0.0\/8,fd00::\/8,::1,nextcloud.intern.example.com,$EXTERNAL_IP",
            "disable_certificate_verification": "yes",
            "wopi_url": "https:\/\/nextcloud.intern.example.com\/",
            "wopi_callback_url": ""
        }
    }
}

.

Logs #### Nextcloud log (data/nextcloud.log) ``` Way too many corporate infos ;-) ``` #### Browser log ``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```
joshtrichards commented 4 months ago

Reproduced, but this may be an issue in Collabora Online itself:

https://github.com/CollaboraOnline/online/issues/8969 https://github.com/CollaboraOnline/online/issues/8931

I don't see any special handling we do specific to spreadsheets and printing.

thebearon commented 4 months ago

Correct, please follow https://github.com/CollaboraOnline/online/issues/8969 for updates.