This is a migrated thread and some comments may be shown as answers.
How can I change printer for printing from code?
5 Answers 51 Views
This is a migrated thread and some comments may be shown as answers.
Krasimir
Top achievements
Rank 1
Krasimir asked on 25 Oct 2017, 06:49 AM
Can I change printer for printing from GridView without PrinterDialog, but from code? (i.e. not default printer and not using PrinterDialog. I have to save printer by user and set it when it is needed)  

5 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 25 Oct 2017, 09:21 AM
Hi Krasimir,

You can set the printer like this:
private void radButton1_Click(object sender, EventArgs e)
{
    RadPrintDocument doc = new RadPrintDocument();
    doc.PrinterSettings.PrinterName = "Microsoft Print to PDF";
    radGridView1.Print(false,doc);
}

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Krasimir
Top achievements
Rank 1
answered on 25 Oct 2017, 09:27 AM
Thank you! Perfect!
0
HARRY
Top achievements
Rank 1
answered on 26 Sep 2019, 05:53 AM
This is really nice to see. Also If you facing installation issue with Epson printer then follow some procedure and learn how to set up an Epson printer easily. Hope this will be fruitful to you.
0
Krasimir
Top achievements
Rank 1
answered on 26 Sep 2019, 06:30 AM
What have it with Epson to do?! And how is this with GridView from Telerik connected anyway?
 
0
Krasimir
Top achievements
Rank 1
answered on 30 Dec 2020, 08:06 AM
I can tell this in other languages too : What have this with GridView from Telerik to do?!
Asked by
Krasimir
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Krasimir
Top achievements
Rank 1
HARRY
Top achievements
Rank 1
Share this question
or