Skip to content

PRINTING

Introduction

The PRINTING section allows you to use the same language as the ROUTE section of the DSC to programmatically create a PDF (or other format) of the questionnaire, either with or without individual response data.

The following additional functions are available in the PRINTING section:

  • PAGE() - Insert a hard page break
  • PRINT() - Print a question (equivalent to ASK)
  • PRINTCANVAS() - Print a CANVAS structure (equivalent to DISPLAYCANVAS)

The following display-related functions and constructs are not valid in the PRINTING section:

  • NEWPAGE()
  • ENDPAGE()
  • ASK()
  • XASK()
  • STORE()
  • DISPLAYCANVAS()
  • CHECK: {}

For further information on using the PRINTING section, see ....

Example

``` QUESTIONS

Q1 : INTEGER

ROUTE

NEWPAGE() ASK(Q1) ENDPAGE()

PRINTING

PAGE() MESSAGE("This is some text") PRINT(Q1)