프로젝트

일반

사용자정보

개정판 d04e8ee9

IDd04e8ee9e2183c116fdafbf838086f4cec5925c4
상위 344ac7ed
하위 df00b3d0

김태성이(가) 약 5년 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)