Iasphelp::Close method

The Close method enables an ASP Web page to close access to a printer.

Syntax

HRESULT Close();

Parameters

This method has no parameters.

Return value

The return value is always S_OK.

VBScript Example

The name of the printer being closed must have been specified in a previous call to the Iasphelp::Open method.

Dim objPrinter
strPrinter = Session("MS_printer")
Set objPrinter = Server.CreateObject ("OlePrn.AspHelp")
objPrinter.Open strPrinter
...
objPrinter.Close

Requirements

Target platform: Desktop

See also

Iasphelp::Open