We are evaluating and our immediate need is for printing PDF from a .Net Web service. Here is sample code we have working in a console application.
WPViewPDF.PDFViewer vwr = new WPViewPDF.PDFViewer();
vwr.LoadFromFile(filename);
// Use BeginPrint to set the printer
vwr.BeginPrint(_printerName);
vwr.EndPint();
vwr.Print();
In the Web Service if fails on LoadFromFile with a Win32Exception "Error creating window handle.". I'm guessing it is trying to create the Window for the viewer. Since this is web service, it can't.
Is this a known issue? Is there a work around?