You're looking to print a PDF directly from a File column in Dataverse, either within a Canvas app or a Model-driven app, without requiring the user to download it first. This is a common requirement, but it's not a straightforward process due to browser security restrictions. Browsers generally prevent websites (including your apps) from directly printing content from arbitrary URLs without user interaction (like clicking a download button).
Here's a breakdown of the challenges and possible approaches:
Challenges:
Possible Approaches (with Caveats):
IFrame Approach (Canvas Apps and Model-driven Forms - Simpler, but limitations):
How it works: You can embed an iframe in your app and set the src
attribute of the iframe to the URL of the PDF file in Dataverse. Then, you can use JavaScript to trigger the iframe's print functionality.
Caveats:
André Arnaud de Cal...
292,286
Super User 2025 Season 1
Martin Dráb
231,064
Most Valuable Professional
nmaenpaa
101,156