Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
[in] printerName
The name of the target printer.
[in] jobName
The name to apply to the job.
[in] jobOutputStream
The job content. The application must set the seek pointer to the beginning before specifying the job output stream.
[in] jobPrintTicketStream
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.
[out] docPackageTarget
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
| Requirement | Value | 
|---|---|
| Minimum supported client | Windows 8 [desktop apps only] | 
| Minimum supported server | Windows Server 2012 [desktop apps only] | 
| Target Platform | Windows | 
| Header | documenttarget.h |