2

我正在从 CRM 2011 for Outlook 中打开一个弹出窗口。问题是我需要用户能够打印。如果您从 IE 执行此操作,则浏览器打印菜单可用,但从 Outlook 则不可用。你只是得到一个普通的窗口。当从 Outlook 打开弹出窗口时,按 Alt 键没有任何作用。openStdWin() 选项似乎都不适用于 Outlook。

仅供参考,我正在尝试打印仪表板(为什么 MS 将其排除在我之外)。我们提出的解决方案是将以下代码连接到功能区按钮。然后用户使用内置的浏览器打印功能,可以打印仪表板。但似乎不是来自 Outlook。有什么建议么?(在任何人建议之前,我们的客户认为打印屏幕是不可接受的)

function printCurrentDashboard() {    
    if (Xrm.Page.context.isOutlookClient()) {
        var pTarget = document.getElementById('dashboardFrame').src;
        openStdWin(window.location.protocol + '//' + window.location.host + pTarget, 'test', 800, 600, 'menubar=yes,toolbar=yes,channelmode=no,directories=yes,fullscreen=no,location=yes,status=yes,titlebar=yes'); 
    }
    else {
        var pTarget = parent.document.getElementById('dashboardFrame').src;
        window.open(window.location.protocol + '//' + window.location.host + pTarget);
    }
}
4

1 回答 1

0

尝试使用openStdWinWithFeaturesvs openStdWin

于 2012-06-28T22:58:32.737 回答