Sample code for HTML to XPS C# conversion. Use API example code for batch HTML files to XPS conversion within VB.NET, ASP.NET, or any .NET-based application... Combine ( dataDir , "sample.html" );...); var outputFile = Path . Combine ( dataDir , "html_to_xps.pdf"...