Created on 17 October 2021
icon_unfollowing
Login to follow
iframe-printer

IFrame Printer

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded on 17 October 2021 by 
iframe-printer

IFrame Printer

Details
Sending the content of a Reactive web page to the print dialog after it is "fully loaded" is not straight-forward, due to the async nature of the underlying technology. This component contains WebBlocks that facilitate printing the content of a RWA page within another RWA page, using an iFrame and component-mount JS event.
Read more

Normally for TWA (Traditional Web Application - .aspx) pages, printing its content can be done by loading the printable into a hidden iFrame and wait for it to be fully rendered. Afterwards, the JS function to open the print dialog is triggered. This can be accomplished by using "JS onload" event, and we would call the print function in that iframe.onload.

This approach doesn’t work with RWA pages, as they work with async calls and the real "render finish" of the page is not detectable by the iframe.onload event.

So instead of the iframe.onload event, we use the componentDidMount JS event approach.

This method works well if we can check if the last item that needs to be loaded on the page is known to us (e.g. a list with many items).

Release notes (1.0.0)
Reviews (0)
Category
Functional libraries & utilities, Other functions & libraries
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
See all 1 dependencies
Application Objects
IFrame Printer has 0 AOs.
Team
Compatible with
Version 11
11.12.0 or higher
Database:
All
Asset consumers
No consumers yet.
Weekly downloads