|
@@ -47,6 +47,8 @@ namespace PDF_Office.ViewModels.Dialog.HomePageToolsDialogs.HomePagePrinter
|
|
|
|
|
|
|
|
|
public PrintSettingsInfo PrintSettingsInfo = new PrintSettingsInfo();
|
|
|
+ List<int> PageList = new List<int>();
|
|
|
+
|
|
|
|
|
|
#region 常用字符串
|
|
|
public string Title => "";
|
|
@@ -902,24 +904,13 @@ namespace PDF_Office.ViewModels.Dialog.HomePageToolsDialogs.HomePagePrinter
|
|
|
isCurrentPage = false;
|
|
|
}
|
|
|
|
|
|
- //if (parameters.TryGetValue<List<int>>(ParameterNames.PageList, out PageList))
|
|
|
- //{
|
|
|
- // PageListString = CommonHelper.GetPageParmFromList(PageList);
|
|
|
- // if (!string.IsNullOrEmpty(PageListString))
|
|
|
- // {
|
|
|
- // PrintSettingsInfo.PageRangeList = PageList;
|
|
|
- // }
|
|
|
- //}
|
|
|
- List<int> PageList = new List<int>();
|
|
|
-
|
|
|
- PageRangeSelectIndex = 4;
|
|
|
- PageList.Clear();
|
|
|
- PageList.Add(1);
|
|
|
- PageList.Add(2);
|
|
|
- PageListString = CommonHelper.GetPageParmFromList(PageList);
|
|
|
- if (!string.IsNullOrEmpty(PageListString))
|
|
|
+ if (parameters.TryGetValue<List<int>>(ParameterNames.PageList, out PageList))
|
|
|
{
|
|
|
- PrintSettingsInfo.PageRangeList = PageList;
|
|
|
+ PageListString = CommonHelper.GetPageParmFromList(PageList);
|
|
|
+ if (!string.IsNullOrEmpty(PageListString))
|
|
|
+ {
|
|
|
+ PrintSettingsInfo.PageRangeList = PageList;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
System.Windows.Size pageSize = PDFViewer.Document.GetPageSize(0);
|