I’m using ABCPdf get a pdf from a some HTML code. While I was developing everything worked great, now I install it in the server it is not working. It throw this exception
WebSupergoo.ABCpdf8.Internal.PDFException:
ABCpdf cannot detect any printers.
Gecko Engine requires a printer
installed in the system. Usually, XPS
Document Writer would suffice. Try
also running the service as an
interactive user.
In my computer I have MS office installed, in the server I don’t.
So my questions are:
- Is there anyway (with ABCpdf) to generate a PDF using Doc.AddImageHtml method without the MS XPS printer?
- If not, is there anyway I can install the XPS printer without installing the office?
Thanks!
I found out that if I change to use MSHtml Engine to render the HTML I have no problem in the server.
This rendering engine does not work with IE9 + .NET framework 4 + ASP.NET and not web forms. (That is actually my case). Luckily the server has Windows Server 2003, so it doesn’t have IE9. Please note that in the link you should go to section
and then to the question
This is the only solution I have right now but if someone has a solution that make ABCPdf work without Microsoft XPS Printer and has no trouble with IE9 it would be really appreciated.