Community Forum

Print preview/print hanging

Profile Image 3 Posts 3 Karma
davidpw posted this 24 March 2014

I have IE 10 on windows 7.

I set some print settings and then try to print preview and IE hangs.

I had to comment out  MeadCo.ScriptX.PrintPage(true); because that cause IE to hang to. I'm using scriptx 1.7.

Code is below:

 

 <script type="text/javascript">

        $(window).load(function () {

            if (MeadCo.ScriptX.Init()) {

                if (MeadCo.Licensing.IsLicensed()) {

                    MeadCo.ScriptX.Printing.SetMarginMeasure(2);

 

                    $("#pbPrintLetter").click(function () {

 

                        with (MeadCo.ScriptX.Printing) {

                            header = "This is LETTER size with LANDSCAPE orientation.";

                            footer = "This is LETTER size with LANDSCAPE orientation.";

                            orientation = "landscape";

                            topMargin = 1;

                            leftMargin = 1;

                            paperSize = "Letter";

                        }

 

                     //   MeadCo.ScriptX.PrintPage(true);

          

                    });

 

                    $("#pbPrintLegal").click(function () {

 

                        with (MeadCo.ScriptX.Printing) {

                            header = "This is LEGAL size with LANDSCAPE orientation.";

                            footer = "This is LEGAL size with LANDSCAPE orientation.";

                            orientation = "landscape";

                            topMargin = 1;

                            leftMargin = 1;

                            paperSize = "A4";

 

                        }

 

                      //  MeadCo.ScriptX.PrintPage(true);

              

                    });

                }

                else {

                    MeadCo.Licensing.ReportError("This sample requires a license.");

                }

            }

        });

    </script>

 

Post Edited 24 March 2014

Profile Image 189 Posts 189 Karma
Jerry posted this 25 March 2014

Hi

 

When IE's print Preview pane opens two things happen:

 

1/. The host browser goes modular

 

2/. IE 'thinks' that print spooling is occuring whenever the Preview pane is open.

 

Bottom line: you need to ensure that the Preview pane is closed before making any sequential call.

 

I hope that this helps.

 

Post Edited 25 March 2014

Profile Image 3 Posts 3 Karma
davidpw posted this 25 March 2014

it's not just on print previewing though.

 

If I call MeadCo.ScriptX.PrintPage(true); or MeadCo.ScriptX.PrintPage(false); it hangs. If I try to manually print from the menu it hangs.

 

I should clarify in my code page load it initializes the ActiveX control. It does not do anything else. Then simply selecting print or print preview from the browser menu hangs IE. Clicking anywhere in the browser makes the computer beep like there is a modal dialog hidden somewhere.

Post Edited 25 March 2014

Profile Image 189 Posts 189 Karma
Jerry posted this 25 March 2014

Post Edited 25 March 2014

Profile Image 3 Posts 3 Karma
davidpw posted this 25 March 2014

Same result. Just going to the page with the ActiveX control and manually clicking print preview from the browser menu causes it to hang.

I have tried uninstalling and reinstalling, disabling all add-ins, rebooting my machine, etc.

I noticed that it does change the print settings correctly because I can see that on the print setup dialog. It's just trying to print or print preview is where it hangs.

Profile Image 189 Posts 189 Karma
Jerry posted this 25 March 2014

Hi

 

Please contact me at feedback@meadroid.com and we'll try to get this fixed.

 

Jerry