请注意,只有当我的UserControl驻留在FixedPage中由DocumentViewer显示的FixedDocument中时,才会发生这种情况。这是FixedPage.cs中的代码,它试图获取我的项的父项。我已经添加了评论。parent = LogicalTreeHelper.GetParent(e); if (parent is FixedPage) childIndex = ((<
document.DocumentPaginator.PageSize = new Size(pd.PrintableAreaWidth, pd.PrintableAreaHeight);
FixedPagefixedPage = new FixedPage();fixedPage.Heightthis.GetView(pageM
我有一个关于多页FixedPage的问题。我有一个网格以编程方式创建,网格超过一个A4页面。现在我想打印网格在几个FixedPage与打印页边距。但是在我的方法中,我反复创建网格,并在fixedPage排列函数中偏移LeftTop点。我遇到了一个问题,我无法在fixedPage中设置打印页边距,因为我将打印页边距设置为fixedPage,然后第一页将具有打印页边距,而下一页将为空白。var fixedPage = new FixedPage();
fi