Documentation of setup


Global Index (short | long) | Local contents | Local Index (short | long)


Function Synopsis

result = setup( pj )

Help text

SETUP Open the printer setup dialog.
   If the device driver in the PrintJob object is setup, opens the window
   system specific dialog for setting options for printing. Normally this 
   dialog will affect all future printing using the window system's driver
   (i.e. Windows drivers), not just the current Figure or model.

   Ex:
      err_code = SETUP( pj ); %returns 1 if successfuly opened setup
                               dialog, 0 if not.

   See also PRINT.
   See also PRINT.

Cross-Reference Information

This function is called by

Listing of function setup

function result = setup( pj )

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.2 $  $Date: 2000/06/01 02:54:08 $

if strcmp('setup', pj.Driver)
    
    result = 1;
    if feature('NewPrintAPI')
        hardcopy( pj );
    else
        hardcopy(pj.Handles{1}(1), '-dsetup');
    end
else
    result = 0;
end