TreeINFO-For-M365 documentation
    Preparing search index...

    Interface Print

    Provides print template functionality for the current form.

    const { form } = tisa;

    // Open a print template in a new window
    await form.print.show("ContractCoverSheet");

    // Open with debug box showing all form data passed to the template
    await form.print.show("TestTemplate", true);
    interface Print {
        show(templateName: string, debug?: boolean): Promise<void>;
    }
    Index

    Methods

    Methods

    • Opens a print template in a new browser window, rendered with current form field values.

      Parameters

      • templateName: string

        Name of the print template

      • Optionaldebug: boolean

        When true, enables the "Form data passed to template" debug box in templates that support it (default: false)

      Returns Promise<void>

      await tisa.form.print.show("ContractCoverSheet");
      await tisa.form.print.show("TestTemplate", true); // with debug box