struttura MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T

La struttura MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T è una struttura MXDC_ESCAPE_HEADER_T concatenata con una struttura MXDC_S0PAGE_DATA_T .

Sintassi

typedef struct tagMxdcS0PagePassthroughEscape {
  MXDC_ESCAPE_HEADER_T mxdcEscape;
  MXDC_S0PAGE_DATA_T   xpsS0PageData;
} MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T, *P_MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T;

Members

mxdcEscape

Struttura MXDC_ESCAPE_HEADER_T con il membro opCode impostato su MXDCOP_SET_S0PAGE.

xpsS0PageData

Struttura MxdcS0PageData che rappresenta una pagina XPS-document.

Commenti

Questa struttura viene passata nel parametro lpszInData della funzione ExtEscape quando viene chiamata con l'escape MXDC_ESCAPE e il membro opCodedella struttura MXDC_ESCAPE_HEADER_T è MXDCOP_SET_S0PAGE. Il risultato è che Microsoft XML Document Converter (MXDC) passa la pagina alla stampante senza elaborarla.

Allocare memoria per l'escape come illustrato di seguito, impostare i campi in base alle esigenze e quindi chiamare ExtEscape.

// Compute size of buffer required adding the
//  size of the escape structure to the size
//  of the resource data buffer.
SIZE_T iTotalDataSize = sizeof(MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T) + 
                        iS0PageDataSize - 1;

// Allocate the memory buffer.
P_MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T pS0PageEscapeData = 
                        (P_MXDC_S0PAGE_PASSTHROUGH_ESCAPE_T)HeapAlloc(
                            GetProcessHeap(),
                            0,
                            iTotalDataSize);

La chiamata a ExtEscape deve essere tra una chiamata a StartPage e una chiamata a EndPage.

L'applicazione chiamante è responsabile della convalida del codice XML della pagina del documento XPS.

L'utilizzo di streaming è più efficiente se si chiama ExtEscape con MXDCOP_SET_S0PAGE_RESOURCE come opCode per ogni risorsa nella pagina prima di chiamarla con MXDCOP_SET_S0PAGE.

Requisiti

Requisito Valore
Client minimo supportato
Windows Vista [solo app desktop]
Server minimo supportato
Windows Server 2008 [solo app desktop]
Intestazione
Mxdc.h

Vedi anche

Stampa

Stampare strutture API Spooler

Funzioni di escape della stampante GDI

ExtEscape

MXDC_ESCAPE