개정판 ca49aa5b
print / export 수정
Change-Id: Iae804b00f8323df52aa4830a5ae14c1719cea9fe
KCOM/Controls/PrintControl.xaml.cs | ||
---|---|---|
123 | 123 |
System.Windows.Threading.DispatcherTimer tm = new System.Windows.Threading.DispatcherTimer(); |
124 | 124 |
bool _initializeComponentFinished; //이벤트 |
125 | 125 |
bool _IsDagSlider = false; //드래그 상태인가 |
126 |
bool IsExportOrPrint = false; |
|
127 |
|
|
126 | 128 |
List<DisplayColorInfo> colorList = new List<DisplayColorInfo>(); |
127 | 129 |
DefinedPages DocumentInfo { get; set; } //문서정보 정의 |
128 | 130 |
//PdfSharp.Pdf.PdfDocument document { get; set; } // pdfsharp 인데 아직 왜 넣었는지 모름 |
... | ... | |
280 | 282 |
{ |
281 | 283 |
this.CurrentPageNo = (int)this.sliderPages.Value; |
282 | 284 |
|
283 |
await PageChangeAsync(Common.ViewerDataModel.Instance.NewCancellationToken(), this.CurrentPageNo); |
|
285 |
if (!IsExportOrPrint) |
|
286 |
{ |
|
287 |
await PageChangeAsync(Common.ViewerDataModel.Instance.NewCancellationToken(), this.CurrentPageNo); |
|
288 |
} |
|
284 | 289 |
//await App.PageStorage.GetPageUriAsync(this.CurrentPageNo); |
285 | 290 |
|
286 | 291 |
if (_ButtonName == "Current") |
... | ... | |
559 | 564 |
|
560 | 565 |
int cnt = 0; |
561 | 566 |
|
567 |
IsExportOrPrint = true; |
|
568 |
|
|
562 | 569 |
Printimg_List = new Dictionary<int, System.Drawing.Image>(); |
563 | 570 |
|
564 | 571 |
foreach (int PageNo in _lstPrintPageNo) |
... | ... | |
566 | 573 |
cnt++; |
567 | 574 |
sliderPages.Value = PageNo; |
568 | 575 |
await PageChangeAsync(token,PageNo, true); |
569 |
await System.Threading.Tasks.Task.Delay(300); |
|
570 | 576 |
//PageChanged(cnt, true); |
571 | 577 |
} |
572 | 578 |
PrintName = cbPrint.SelectedItem.ToString(); |
... | ... | |
577 | 583 |
Printing(); |
578 | 584 |
} |
579 | 585 |
}); |
586 |
|
|
587 |
IsExportOrPrint = false; |
|
580 | 588 |
} |
581 | 589 |
catch (Exception ex) |
582 | 590 |
{ |
... | ... | |
640 | 648 |
SaveDig.Title = "Save an PDF File"; |
641 | 649 |
if(SaveDig.ShowDialog().Value) |
642 | 650 |
{ |
651 |
IsExportOrPrint = true; |
|
643 | 652 |
Printimg_List = new Dictionary<int, System.Drawing.Image>(); |
644 | 653 |
|
645 | 654 |
foreach (int PageNo in _lstPrintPageNo) |
... | ... | |
649 | 658 |
sliderPages.Value = PageNo; |
650 | 659 |
}); |
651 | 660 |
|
652 |
|
|
653 | 661 |
await PageChangeAsync(token, PageNo, true); |
654 | 662 |
|
655 | 663 |
System.Diagnostics.Debug.WriteLine("Export Page : " + PageNo); |
... | ... | |
742 | 750 |
|
743 | 751 |
await PageChangeAsync(token,_StartPageNo); |
744 | 752 |
|
753 |
IsExportOrPrint = false; |
|
754 |
|
|
745 | 755 |
(Application.Current.MainWindow as MainWindow).dzMainMenu.DialogMessage_Alert("Success", "Alert"); |
746 | 756 |
}else |
747 | 757 |
{ |
... | ... | |
751 | 761 |
printIndy.IsBusy = false; |
752 | 762 |
})); |
753 | 763 |
|
754 |
(Application.Current.MainWindow as MainWindow).dzMainMenu.DialogMessage_Alert("Cancel", "Alert"); |
|
764 |
//(Application.Current.MainWindow as MainWindow).dzMainMenu.DialogMessage_Alert("Cancel", "Alert");
|
|
755 | 765 |
} |
756 | 766 |
} |
757 | 767 |
catch (Exception ex) |
내보내기 Unified diff