How to print an embedded iframe in html page from OneDrive (excel file)?
Payam Taherirostami
0
Reputation points
I'm trying to embed one sheet of my excel workbook in to a HTML page from OneDrive.
when I try to print the page (ctrl+p) the content of frame is not showing and does not getting printed. Here are the code and the pictures of what I'm expecting to have and what I'm getting.
<!DOCTYPE html>
<html>
<head>
<title>Packing List</title>
</head>
<script>
function print(){
}
</script>
<body>
<div ><button id="p" onClick="print()">Print </button></div>
<div id="iframe">
<iframe
width="1100"
height="660"
frameborder="0"
scrolling="no"
src="mySrc"
>
</iframe>
</body>
</html>
Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
Microsoft 365 and Office | Development | Other
Microsoft 365 and Office | Development | Other
Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
Microsoft 365 and Office | OneDrive | For business | Windows
Microsoft 365 and Office | OneDrive | For business | Windows
A Microsoft file hosting and synchronization service.
Microsoft 365 and Office | Excel | For business | Windows
Microsoft 365 and Office | Excel | For business | Windows
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Sign in to answer