IPrintDocumentPackageTargetFactory::CreateDocumentPackageTargetForPrintJob method

Acts as the entry point for creating an IPrintDocumentPackageTarget object.

Syntax


HRESULT CreateDocumentPackageTargetForPrintJob(
  [in]   LPCWSTR printerName,
  [in]   LPCWSTR jobName,
  [in]   IStream *jobOutputStream,
  [in]   IStream *jobPrintTicketStream,
  [out]  IPrintDocumentPackageTarget **docPackageTarget
);

Parameters

printerName [in]

The name of the target printer.

jobName [in]

The name to apply to the job.

Note  Job name strings longer than 63 characters will be truncated to 63 characters and a terminating NULL.

jobOutputStream [in]

The job content. The application must set the seek pointer to the beginning before specifying the job output stream.

jobPrintTicketStream [in]

A pointer to the IStream interface that is used by the caller to write the job-level print ticket that will be associated with this job.

docPackageTarget [out]

The target output.

Return value

If the CreateDocumentPackageTargetForPrintJob method completes successfully, it returns an S_OK. Otherwise it returns the appropriate HRESULT error code.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Documenttarget.h

See also

IPrintDocumentPackageTarget
IPrintDocumentPackageTargetFactory

 

 

Community Additions

ADD
Show:
© 2014 Microsoft