AnsweredAssumed Answered

Run time solution does not create pdf file

Question asked by john9210 on Aug 23, 2013
Latest reply on Aug 23, 2013 by philmodjunk

Title

Run time solution does not create pdf file

Post

     FM 12 Adv. I use a script to create a pdf file of browsed records. It let the user cancel without displaying the FM error message. However, in a Runtime Solution it does not create the file. It simply displays the script custom dialog box that the Pdf file canceled.

      

         
  •           # This is a subscript used by other scripts to create a pdf of the browsed set
  •      
  •           # It suppress the error message if user cancels creating the pdf
  •      
  •           #
  •      
  •           #
  •      
  •           # First get the income and expense totals for Last year's budget and all Cost estimates
  •      
  •           Perform Script [ “Subscript | Income and Expense totals” ]
  •      
  •           #
  •      
  •           Go to Layout [ “Cost data report” (Accounts) ]
  •      
  •           Set Error Capture [ On ]
  •      
  •           Save Records as PDF [ Records being browsed ] [ Document - Compatibility: Acrobat 7 and later ] [ Pages - Number Pages From: 1; Include: All pages ] [ Security - Printing: High Resolution; Editing: Any except extracting pages; Enable copying; Enable Screen Reader ] [ Initial View - Show: Pages Panel and Page; Page Layout: Single Page; Magnification: 100% ] [ Restore; No dialog ]
  •      
  •           If [ Get ( LastError )=1 //user cancelled action ]
  •      
  •           Show Custom Dialog [ Title: "Print cancel"; Message: "Pdf file cancelled."; Default Button: “OK”, Commit: “Yes” ]
  •      
  •           End If
  •      
  •           Go to Layout [ “DCA Budget Prep” (Accounts) ]
  •      
  •           Set Error Capture [ Off ]

Outcomes