- C# -
public void Print(){
System.Windows.Printing.PrintDocument doc = new System.Windows.Printing.PrintDocument();
doc.BeginPrint += (s, e) => {};
doc.PrintPage += (s, e) => {
e.PageVisual = this; //UIElement
};
doc.EndPrint += (s, e) => {};
doc.Print("print");
}
}
댓글 없음:
댓글 쓰기