This basic example prints the current page without any dialog boxes displaying and uses the defaults.
PrintPage()
This example supposes that we want to print a pass certificate which we have designed as a page in it’s own right called PassCert. We don’t want to give the user the option to cancel the printing so we will not display any dialog boxes but we want the certificate to print in Landscape orientation, fill the available page and be printed to the highest quality using the default margins.
PrintPage("PassCert", false, false, true, true, true, 4)
Remember that you cannot skip preceding parameters even if you do not want to vary the default – Opus needs to count the preceding parameters to know which ones you are changing.