개정판 d04e8ee9
Sync Page 이동 수정
Change-Id: Ib0fbc85754ede89f83c1364ee77dc07f11ada633
KCOM/Controls/PrintControl.xaml.cs | ||
---|---|---|
465 | 465 |
await load.Markup_LoadAsync(printCanvas); |
466 | 466 |
} |
467 | 467 |
|
468 |
await Dispatcher.InvokeAsync(() => { |
|
468 | 469 |
printCanvas.UpdateLayout(); |
470 |
}); |
|
469 | 471 |
|
470 |
if (Flag)
|
|
472 |
if (Flag) |
|
471 | 473 |
{ |
472 |
//MemoryStream ms = new MemoryStream(); |
|
473 |
//BmpBitmapEncoder bbe = new BmpBitmapEncoder(); |
|
474 |
//bbe.Frames.Add(BitmapFrame.Create(new Uri(_DefaultTileUri + PageNo + ".png"))); |
|
475 |
//bbe.Save(ms); |
|
476 |
|
|
477 |
//System.Drawing.Image.FromFile() |
|
478 |
//Printimg = System.Drawing.Image.FromStream(stream); |
|
479 |
Export export = new Export(); |
|
480 |
p_img = export.Exporting(PrintView, printCanvas.Width, printCanvas.Height); |
|
481 |
Printimg_List.Add(Printimg_List.Count() + 1, p_img); |
|
482 |
} |
|
474 |
//MemoryStream ms = new MemoryStream(); |
|
475 |
//BmpBitmapEncoder bbe = new BmpBitmapEncoder(); |
|
476 |
//bbe.Frames.Add(BitmapFrame.Create(new Uri(_DefaultTileUri + PageNo + ".png"))); |
|
477 |
//bbe.Save(ms); |
|
478 |
|
|
479 |
//System.Drawing.Image.FromFile() |
|
480 |
//Printimg = System.Drawing.Image.FromStream(stream); |
|
481 |
await System.Threading.Tasks.Task.Run(() => |
|
482 |
{ |
|
483 |
Dispatcher.InvokeAsync(() => |
|
484 |
{ |
|
485 |
|
|
486 |
Export export = new Export(); |
|
487 |
p_img = export.Exporting(PrintView, printCanvas.Width, printCanvas.Height); |
|
488 |
Printimg_List.Add(Printimg_List.Count() + 1, p_img); |
|
489 |
}); |
|
490 |
}); |
|
491 |
} |
|
483 | 492 |
|
484 | 493 |
result = true; |
485 | 494 |
//} |
... | ... | |
609 | 618 |
|
610 | 619 |
foreach (int PageNo in _lstPrintPageNo) |
611 | 620 |
{ |
612 |
sliderPages.Value = PageNo; |
|
621 |
await Dispatcher.InvokeAsync(() => |
|
622 |
{ |
|
623 |
sliderPages.Value = PageNo; |
|
624 |
}); |
|
613 | 625 |
await PageChangeAsync(PageNo, true); |
626 |
|
|
614 | 627 |
} |
615 | 628 |
|
616 | 629 |
//using (FileStream fs = new FileStream(@"D:\Temp\Text.pdf", FileMode.OpenOrCreate, FileAccess.Write, FileShare.None)) |
내보내기 Unified diff