Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Problems printing OWA attachments inside my web browser app
Forum Updated to NodeBB v4.3 + New Features

Problems printing OWA attachments inside my web browser app

Scheduled Pinned Locked Moved Unsolved QtWebEngine
printingwebengineqtwebnegine
1 Posts 1 Posters 307 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jussihi
    wrote on last edited by
    #1

    I'm trying to print an email attachment (specifically on outlook.com or OWA) via my web browser app. However, I cannot make it work.

    There are two different ways for printing (if I have understood things correctly): via QWebEngineView class's printRequested and via QWebEnginePage class's printRequested (https://doc.qt.io/qt-6/qwebengineview.html#printRequested and https://doc.qt.io/qt-6/qwebenginepage.html#printRequested). With both of these ways, I'm only able to get an A4-sized (or whatever frame/paper size I define) "screenshot" of my web browser during the message preview, not the attachment itself.

    Here is an example "print" I'm able to get: https://imgur.com/a/e2yqoH2

    Instead of printing the whole webpage, would it be possible to print only the (i)frame containing the attachment? This is possible in other browsers (Chrome, Brave, Edge etc.)

    I found some prior conversations regarding this same issue. Is it so that I can only print the whole webpage, not parts of it? Here is an issue from rstudio's GitHub (I assume they had the same problem I'm facing right now): https://github.com/rstudio/rstudio/issues/4651

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved