如何从Google邮件中打印整个对话

问题描述 投票:0回答:1

我需要打印出我在手机上的“消息”中进行的整个文本对话,然后将其提交给某人的主管。当我尝试将其打印在网站上时,它只给出了我正在查看的屏幕截图。

android printing sms android-messaging
1个回答
0
投票
  1. 在计算机上导航到the web interface
  2. 打开您要打印的对话
  3. 向上滚动直到整个对话被加载
  4. Open the Javascript console
  5. 将下面的Javascript复制并粘贴到控制台中,然后按Enter键>
  6. (function() {
        var originalContents = document.body.innerHTML;
        var printReport= document.querySelector("body > mw-app > div > main > mw-main-container > div > mw-conversation-container > div > div > mws-messages-list > mws-bottom-anchored > div > div > div");
        document.body.innerHTML = printReport.innerHTML;
        document.body.style.display = 'block';
        document.body.style.overflow = 'visible';
        window.print();
        document.body.innerHTML = originalContents;
    }())
    

感谢AbhiNickzthis answer作为起点。

© www.soinside.com 2019 - 2024. All rights reserved.