×

Loading...
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。
Ad by
  • 最优利率和cashback可以申请特批,好信用好收入offer更好。请点链接扫码加微信咨询,Scotiabank -- Nick Zhang 6478812600。

Is this possible to get done? PDF-Javascript related

I said it is impossible, but boss had different idea first but failed with his way.
Now they still want to keep trying... I have 1 week.
This it is:
When a IE print dialog pop-up, is it possible to let web application know that if the use click the 'print' button or 'cancel' button?

I dont need other solution to this, I just need the answer for this question.

My sequence:
1. There is a PDF In a HTML, using this
<object id="objPdf" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" style="height:0; width:0">
<param name="src" value="printAll.do"/>
</object>
2. on click a button call this:
var ac = document.applets["objPdf"];
if (ac!=null&&ac!=undefined){
ac.Print();
}
3. Then IE print dialog comes, use can print or cancel it. I need to know what they chose.


Thanks a lot in advance.
Report

Replies, comments and Discussions:

  • 工作学习 / 专业技术讨论 / Is this possible to get done? PDF-Javascript related
    I said it is impossible, but boss had different idea first but failed with his way.
    Now they still want to keep trying... I have 1 week.
    This it is:
    When a IE print dialog pop-up, is it possible to let web application know that if the use click the 'print' button or 'cancel' button?

    I dont need other solution to this, I just need the answer for this question.

    My sequence:
    1. There is a PDF In a HTML, using this
    <object id="objPdf" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" style="height:0; width:0">
    <param name="src" value="printAll.do"/>
    </object>
    2. on click a button call this:
    var ac = document.applets["objPdf"];
    if (ac!=null&&ac!=undefined){
    ac.Print();
    }
    3. Then IE print dialog comes, use can print or cancel it. I need to know what they chose.


    Thanks a lot in advance.
    • not possible..it's a client side thing..unless u install activex to interact with ie directly. pure server program won't be able to do that
      • boss is embarrassed....