Remove Background Image from Word Document before Sending DOCX to Printer for Printing using C# Java

Hello! We have preview with background in our doc. but we want to remove the background when printing. Is that possible?

@akrtkv,

Please ZIP and upload your sample input Word document (you want to remove background from) here for testing. We will then investigate the scenario on our end and provide you more information.

Sicklist.zip (800.0 KB)

@akrtkv,

You can remove that Shape node from Word document before sending it to printer. Here is sample code:

Document doc = new Document(@"E:\\Temp\\Sicklist\\Sicklist.docx");

Shape backImage = (Shape)doc.GetChildNodes(NodeType.Shape, true)[0];
backImage.Remove();

doc.Print();

Hope, this helps.

1 Like