How can I change printer for printing from code?

5 posts, 1 answers
  1. Krasimir
    Krasimir avatar
    14 posts
    Member since:
    Aug 2016

    Posted 25 Oct 2017 Link to this post

    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)  
  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    2902 posts

    Posted 25 Oct 2017 Link to this post

    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.
  3. Krasimir
    Krasimir avatar
    14 posts
    Member since:
    Aug 2016

    Posted 25 Oct 2017 in reply to Dimitar Link to this post

    Thank you! Perfect!
  4. HARRY
    HARRY avatar
    1 posts
    Member since:
    Sep 2019

    Posted 26 Sep 2019 Link to this post

    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.
  5. Krasimir
    Krasimir avatar
    14 posts
    Member since:
    Aug 2016

    Posted 26 Sep 2019 in reply to HARRY Link to this post

    What have it with Epson to do?! And how is this with GridView from Telerik connected anyway?
     
Back to Top