0 Replies Latest reply on Nov 29, 2010 11:32 PM by marco.niederberger

    FormBridge: Adobe Reader Crash

    marco.niederberger

      Hi there

       

      We are using FormBridge as communication interface between AdobeAIR and dynamic PDFs (eForms).

      Since the Versions 9.1 and above we have extremly problems.

       

      As we send the message Save, Print or Lock from AdobeAIR to the eForm it will close both application without any error message.

       

      Does anyone have an idea?

       

      Here an outline of our Code in the PDF:

      ---

      /* incoming message */
      function mcOnMessage(aMessage){
          if (aMessage.length > 0){
              // console.println("sobComm incomming message: " + aMessage[0]);
              // xfa.host.messageBox("sobComm incomming message: " + aMessage[0]);

              switch(aMessage[0]){
                  case R_LOAD_XML_REQ:
                      ....
                      break;
                    
                  case R_SAVE_XML_REQ:
                      ....
                      break;
                    
                  case R_SAVE_PDF_REQ:
                      ....
                      break;
                    
                  case R_PRINT_PDF_REQ:
                      pgeHidden.subUtils.btnPrint.execEvent("click");
                      break;
                    
                  ....              
                  default:
                      app.alert("Unknown message: " + aMessage[0]); 
              }
          } else {
              app.alert("Message from hostContainer: \n" + aMessage);
          }
      }
      ---

      Formular1.pgeHidden.subUtils.btnPrint::click - (JavaScript, client)
      pgeHidden.subFormBridge.variables.sobMCCall.printPDF();

      ---

      ---
      function printPDF() {
         xfa.host.print(1, "0", ("" + (xfa.host.numPages - 1)), 0, 1, 0, 0, 0);
      }
      ---