hi team,
i have a word, when print using MS is OK, image.png (95.4 KB)
but, when i using Aspose words API
public static void Print()
{
Document doc = new Document(@"c:\paper.docx");
PrinterSettings ps = BuildPrinterSetting();
AsposeWordsPrintDocument awPrintDoc = new AsposeWordsPrintDocument(doc);
awPrintDoc.PrinterSettings = ps;
awPrintDoc.Print();
}
private static PrinterSettings BuildPrinterSetting()
{
PrinterSettings ps = new PrinterSettings();
ps.Copies = 1;
ps.PrinterName = "OneNote (Desktop) (redirected 2)";
ps.Collate = true;
ps.PrintRange = PrintRange.AllPages;
ps.DefaultPageSettings.Color = true;
ps.Duplex = Duplex.Vertical;
ps.DefaultPageSettings.PaperSize = size;
ps.DefaultPageSettings.PrinterResolution.Kind = PrinterResolutionKind.High;
return ps;
}
it out of the right margin and the content is truncated image.png (45.2 KB)
my test paper Assessment Paper Test 3_Online.zip (62.4 KB)