Community Forum

Issue with context menu print/preview in Internet Explorer after calling factory.printing.PrintHTML()

Profile Image 1 Posts 1 Karma
smoturi posted this 19 April 2016
We've been experiencing an issue when using the context menu print/preview in Internet Explorer after calling factory.printing.PrintHTML().  The whole document is printed/previewed in this scenario instead of the specific frame.  It works correctly before calling factory.printing.PrintHTML().
The current workaround is to close and re-open the window so the PrintX control will reload.
Code snippet below:
var printAttribs = { topMargin : 0.5, leftMargin : 0.3, rightMargin : 0.3 }
...
   
printing.copies = (attribs && attribs["copies"]) ? attribs["copies"] : 1;;
printing.header = "";
printing.footer = "";
    
printing.portrait = (attribs && attribs["portrait"]) ? attribs["portrait"] : true;
    
printing.SetMarginMeasure(2); // allegedly this resets the margins to defaults
printing.topMargin = (attribs && attribs["topMargin"]) ? attribs["topMargin"] : 0;
printing.leftMargin = (attribs && attribs["leftMargin"]) ? attribs["leftMargin"] : 0;
printing.rightMargin = (attribs && attribs["rightMargin"]) ? attribs["rightMargin"] : 0;
printing.bottomMargin = (attribs && attribs["bottomMargin"]) ? attribs["bottomMargin"] : 0;
...
printing.PrintHTML(html, !isDirect); 
printing.WaitForSpoolingComplete(); 
printing.templateURL = "";
We not setting the document.printingRules.useActiveFrame in this scenario (just mentioning this in case it's relevant).
A similar issue was reported in the release history as fixed in v7.5.0.20.  We're currently using a version above that, v7.7.0.20.  Browser is IE11 and OS is Windows 7.
Please let me know if you need any more information.  Thanks in advance.
Profile Image 168 Posts 168 Karma
Jerry posted this 20 April 2016

Hi

 

If you're using PrintHTML() you're a licensee, so should be directing your enquiry to support on feedback@meadroid.com

 

Please do that and we discuss this there.

 

Thanks

 

Jerry

 

 

 

 

Post Edited 20 April 2016