Print xhtml from the command line?

I work with a client who has a printing process that essentially prints hundreds of html pages at night. The tool they are using now is bersoft called HTMLPrint. Recently, an HTML document provider has upgraded everything to XHTML and uses Anchor tags (basically merging 10 files into 1).

I have been tasked with figuring out how to get the process back to what it uses in XHTML documents.

Basically, we query the database every night for a list of htm doc paths and send it to HTMLPrint, however HTMLPrint only works with HTML 3.2 and completely fails with XHTML.

If anyone knows how we can do this, that would be great. I looked through several tools, but none of them are what I want to do.

This is a similar entry that I read, but not quite the process I'm looking for.

Can I print html files (with images, css) from the command line?

Thanks!

+4
source share
2 answers

Without going too far (and noting that HTMLPrint version history ends in January 2010), I found another article that mentions alternatives for html printing:

  • Print Wide HTML 1.0.0
  • PDFArea HTML to PDF Converter 2.0
  • ASP Printer COM 2.1
  • ASPcodePrint 1.5.15
  • Batch Printing 1.0
  • LIKSE32 ​​3.30
  • Smart Print Control 4.1
  • ONEView 1
  • Print Folder 1.01
  • FlexCell Grid Control for .NET 3.0.5

Perhaps one of them will work for XHTML?

I fully admit that I have not exhausted the list of what XHTML can / cannot do, but, although I would suggest my conclusions on alternatives.

Another option is to create your own printer using WebBrowser and give it the pages you want to print, and call Print yourself.

+1
source

You can convert XHTML to PDF and then print PDF: How to convert XHTML to PDF in C #

0
source

All Articles