We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Is it possble to setup Words's print options to ignore comments

Hello,

I found a solution to set up printing options in Cells in C# to ignore comment balloons from print.

pageSetup.PrintComments = PrintCommentsType.PrintNoComments;
Is it possible in Java for Words?
Or I can just remove comments from document before print it?

Thank You for answering me

Hi Gergely,


Thanks for your inquiry. You can use the following code to remove comments before printing/rendering.

Document doc = new Document(getMyDir() + “inp.docx”);
doc.getChildNodes(NodeType.COMMENT, true).clear();
doc.print();

Hope, this helps.

Best regards,