Can I convert my documents (word, xls, pdf etc) to XPS using Microsoft XPS Document Converter (MXDC).
The following API gives one flag which can suffice my requirement, can somebody please give me pointers of how to use it.
MXDC_ESCAPE Windows Vista: Enables applications to write documents to a file or to a printer in XML Paper Specificaton (XPS) format.
ExtEscape
The ExtEscape function enables applications to access capabilities of a particular device that are not available through GDI.
int ExtEscape(
HDC hdc, // handle to DC
int nEscape, // escape function
int cbInput, // size of input structure
LPCSTR lpszInData, // input structure
int cbOutput, // size of output structure
LPSTR lpszOutData // output structure
);
Regards,
Lalit.

Using ExtEscape to write documents to a file in xps format!!!
ReiXou
I don't think it's possible to use ExtEscape() to convert your documents (word, xls, pdf etc) to XPS... you should print 'em on the Microsoft XPS Document Writer...
wuboyan
Hi,
MXDC_ESCAPE is used to customize output of the MXDC or totally pass_thru MXDC.
When You are printing in your GDI app, in that case, some/all of the content can be configured, meaning, you can generate your own page content and page resources, or totally generate whole XPS content yourself.
I don't think it is possible using MXDC_ESCAPE to convert the Word or other format to XPS.
Johnny1966
Special thanks Charlee for the superb explaination :-)
Regards,