12 Replies Latest reply: Nov 4, 2013 5:21 AM by Michael Ionkin RSS

    macro execution does not work after reloading through scheduler in QV 11



      I have written a macro to create pdf after reloading is done.

      This works fine if the report is reloaded through QV Desktop.

      but when the same report is reloaded through QV server using scheduler, reloading works fine but pdf does not get generated.


      This is the macro I have written in Edit module and have triggered it on PostReload.

      sub PrintReport


      ActiveDocument.GetApplication.Sleep 2000

      ActiveDocument.PrintReport "RP01", "PDF-Xchange 4.0", false ' This line of code pops up save as dlg

      ActiveDocument.GetApplication.Sleep 10000


      end sub