Below is the present syntax for printing a specific report
(KayParkQuote) to either the screen, printer or file.  What I want to do
is give the sales person the option of choosing between two different
reports rather than using only the one report.  Is the CHOOSE command
the best command to use?  I was thinking of using the below syntax right
after the THEN:

 

CHOOSE vreport FROM REPORTS WHERE (I am not sure what to put here) IN
(KayParkQuote,KayParkQuote_Price)

            PRINT .vreport WHERE QuoteID = .vQuoteID

 

I would use the above command for all three choices.

 

(present syntax)

IF vReportOutput = 'Screen' THEN

         PRINT KayParkQuote WHERE QuoteID = .vQuoteID +

         OPTION SCREEN|WINDOW_STATE MAXIMIZED +

         |ZOOM_TYPE PERCENTAGE|ZOOMPERCENT 100

      ENDIF

      IF vReportOutput = 'Printer' THEN

         PRINT KayParkQuote WHERE QuoteID = .vQuoteID +

         OPTION PRINTER

      ENDIF

      IF vReportOutput = 'PDF' THEN

         SET VAR vFileName = ('PDF\SalesQuote_'+.vQuoteID+'.PDF')

         PRINT KayParkQuote WHERE QuoteID = .vQuoteID +

         OPTION PDF +

         |FILENAME &vFileName +

         |TITLE Kay Park Recreation +

         |SUBJECT Sales Quote +

         |AUTHOR Sales Quote Processing Department +

         |OPEN ON

      ENDIF

 

Jim

Reply via email to