Thanks for your request. Document.Print() method will print document on the server side. So, make sure the printer on your server is properly installed and accessible.
In case of using network printer, please make sure that name of the network printer is specified correctly. Make sure that name of the machine is specified correctly.
You can try specifying name of network printer using IP address. On my side I use the following printer name:
PrinterSettings printerSettings = new PrinterSettings();
printerSettings.PrinterName = @"\192.168.0.2\hp LaserJet 1010 Series Driver";
Also, make sure that you have rights to print on this printer. You can try using the following code for testing. This code does not use Aspose.Words at all. So if it will not work, the problem is somewhere on your side.
PrintDocument doc = new PrintDocument();
doc.PrinterSettings.PrinterName = @"\192.168.0.2\hp LaserJet 1010 Series Driver";
doc.PrintPage += Doc_PrintPage;
private void Doc_PrintPage(object sender, PrintPageEventArgs e)
e.Graphics.DrawImage(Image.FromFile(@“Common\test.jpg”), e.MarginBounds.Left, e.MarginBounds.Top);
This code just prints an image.