6 Replies Latest reply: Apr 12, 2011 12:06 PM by Vlad Gutkovsky RSS

    Cant print from java/IE/ajax


      I have uploaded several qlikview apps to server and viewing them works fine with all three client type (java/ie/ajax). On every sheet I have a print button with an action to print the sheet. This works fine with the desktop client but when I click the button on the web nothing happens.

      In 'QlikView Server Settings', tab 'Print' I have entered the settings I think is correct.

      What could be wrong?

        • Cant print from java/IE/ajax
          Vlad Gutkovsky

          Please post your Server Settings\Print settings here.

            • Cant print from java/IE/ajax

              Thanks for your reply!

              My print settings are:

              http://[IP number]/QvPrint/

              D:\Documents and Settings\All Users\Application Data\QlikTech\Qvs\QvPrint\




                • Cant print from java/IE/ajax
                  Vlad Gutkovsky

                  Those settings should work. However, just to clarify what will happen: your desktop and IE Plugin clients will have no trouble printing using the button you created. Java is finicky is general, so it's hard to predict this type of behavior--I suspect that you will get some sort of error that will then need to be troubleshooted if you actually use the Java client. AJAX won't be able to use the button at all because it's actually a macro, which is not supported with AJAX. Your Server Settings\Print settings will enable AJAX printing of objects (using the small print icon in the upper-right hand corner of each object), but not sheets.


                    • Cant print from java/IE/ajax

                      Thanks for the replies they have been very helpful!


                        • Cant print from java/IE/ajax
                          Manoj Kumar Varatharajan


                          My Macro scripts for 'Print Sheet' works well in 'IE Plugin' Browser client. However, it is not working in 'AJAX zero foot print' Browser client. Please find below the Macros used in the application. Right from the Vlas resonse, I understand it is not possible to Print the Sheet using Macro. However, is there any other solution to print the sheets in AJAX client?

                          Sub PrintCurrentSheet
                          Set objWord = CreateObject("Word.Application")
                          objWord.Visible = False
                          Set objDoc = objWord.Documents.Add
                          Const wdOrientLandscape = 1
                          objDoc.PageSetup.Orientation = wdOrientLandscape
                          ActiveDocument.ActiveSheet.CopyBitmapToClipboard false
                          Const wdAlignParagraphCenter = 1
                          objDoc.Paragraphs(1).Alignment = wdAlignParagraphCenter
                          DO WHILE objWord.BackgroundPrintingStatus > 0
                          objWord.Quit wdDoNotSaveChanges
                          Set objWord = Nothing
                          Set objDoc = Nothing
                          END SUB