Export (0) Print
Expand All

__IE_PrintType Property

Retrieves a string specifying whether a print template should prompt the user with the Print dialog box, with the Print Preview dialog box, or not prompt the user at all.

Syntax

[ vPrintType = ] dialogArguments.__IE_PrintType

Possible Values

vPrintType String that receives one of the following values.
Prompt
The user should be prompted with the Print dialog box.
NoPrompt
The user should not be prompted.
Preview
The user should be prompted with the Print Preview dialog box.

The property is read-only. The property has no default value.

Remarks

The __IE_PrintType property applies only to print templates, regardless of whether they show a Print Preview dialog box.

A print template should query for this value to determine what type of printing prompt, if any, should be shown to the user.

Example

The following function, which might be the onload event handler for a print template, shows how to use the __IE_PrintType property. By default, a print template displays the Print Preview dialog box—for this reason, there is no handler for the "Preview" case in the switch. For information on printing support, see the TEMPLATEPRINTER reference page.


function Init()
{
    switch (dialogArguments.__IE_PrintType)
    {
        case "Prompt":
            var bConfirmed = Printer.showPrintDialog();
            if (bConfirmed) DoPrint();
            break;
        case "NoPrompt":
            DoPrint();
            break;
        case "Preview":
        default:
            break;
    }
}

Applies To

dialogArguments

Community Additions

ADD
Show:
© 2014 Microsoft