C# Print directly to a Dymo LabelWriter 450 Twin Turbo
Option to pick automatic, left, or right rolls.
private void Dymo() { try { PrintDocument pd = new PrintDocument(); pd.PrinterSettings.PrinterName = "DYMO LabelWriter 450 Twin Turbo"; PrinterSettings.PaperSourceCollection sources = pd.PrinterSettings.PaperSources; // pd.DefaultPageSettings.PaperSource = sources[0]; // Automatic // pd.DefaultPageSettings.PaperSource = sources[1]; // Left Roll pd.DefaultPageSettings.PaperSource = sources[2]; // Right Roll pd.PrintPage += new PrintPageEventHandler(this.pd_PrintPage); pd.Print(); } catch { } } private void pd_PrintPage(object sender, PrintPageEventArgs ev) { // Build your page here. }
Leave a Reply