Free Support Forum -

On WinXP this code don't work!

I get this error:

System.DllNotFoundException: Unable to load DLL 'XpsPrint.dll': The specified mo
dule could not be found. (Exception from HRESULT: 0x8007007E)
at XpsPrint.XpsPrintHelper.StartXpsPrintJob(String printerName, String jobNam
e, String outputFileName, IntPtr progressEvent, IntPtr completionEvent, Byte[] p
rintablePagesOn, UInt32 printablePagesOnCount, IXpsPrintJob& xpsPrintJob, IXpsPr
intJobStream& documentStream, IntPtr printTicketStream)
at XpsPrint.XpsPrintHelper.StartJob(String printerName, String jobName, IntPt
r completionEvent, IXpsPrintJob& job, IXpsPrintJobStream& jobStream)
at XpsPrint.XpsPrintHelper.Print(Stream stream, String printerName, String jo
bName, Boolean isWait)
at XpsPrint.XpsPrintHelper.Print(String printerName, String jobName, Boolean
at XpsPrint.Program.Main()
Press Enter.

This message was posted using Page2Forum from How-to: Print a Document on a Server via the XpsPrint API - Aspose.Words for .NET


Thanks for your request. You cannot use XPS print API in Windows XP, because XP simply does not support this. This API is available on Windows 7, Windows Server 2008 R2 and also on Windows Vista.

Best regards,