프린터 대화 상자를 표시하는 데 다음 코드가 있지만 선택한 프린터에 관계없이 항상 기본 프린터로 인쇄됩니다.C# Windows에서 인쇄 문제가 발생했습니다. - 항상 기본 프린터로 인쇄합니다.
선택한 사용자를 어떻게 지정합니까? 난 당신이 PrintDialog 인스턴스에서 PrinterSettings 속성을 사용하여 만든하는 PrintDocument 인스턴스에서 적절한 값을 설정해야합니다 생각
PrintDialog pdlg = new PrintDialog();
// Show the PrintDialog
if (pdlg.ShowDialog() == DialogResult.OK)
{
PrintDocument pd = new PrintDocument();
pd.PrintPage += new PrintPageEventHandler(pd_PrintPage);
// Associate PrintDocument object with the PrintDialog
pdlg.Document = pd;
// Print with the new PrinterSettings
pd.Print();
}
이것은 트릭을 만들었습니다 - 많은 감사합니다! – Matt
당신을 진심으로 환영합니다. 이 문제는 항상 나를 물 듭니다. – dar7yl