How to Print Silently

Posted by: sanjeeb.srjm on 23 August 2021, 7:30 pm EST

    • Post Options:
    • Link

    Posted 23 August 2021, 7:30 pm EST

    Dear Sir/Mam,

    The below command shows the printing dialog which we don’t want.

    FlexReport.Print();

    we have also tried following but still showing the dialog…

    C1PrintOptions result = new C1PrintOptions();

    result.PrinterSettings = new PrinterSettings();

    result.PrinterSettings.PrinterName = BillPrinter; //printer-name variable

    FlexReport.Print(result);

    Regards-

    Sanjeeb

  • Posted 23 August 2021, 9:38 pm EST

    Hello Sanjeeb,

    We do not face the issue at our end as shown in the attached GIF.

    If you are doing anything else then please let us know and also share the following details:

    1: The control version that you are using.

    2: Screenshot of the dialog that you getting at your end.

    3: Your environment details.

    Regards,

    Prabhat Sharma.

  • Posted 19 September 2021, 6:43 pm EST

    Dear Prabhat Sir,

    Whenever I try to call below code

    operation is not valid due to current state of object error occurs …

    Render(); //here is all ok with all data

    C1PrintOptions result = new C1PrintOptions();

    result.PrinterSettings = new PrinterSettings();

    result.PrinterSettings.PrinterName = “EPSON L360 Series”;

    FlexReport.Print(result); //here error occurs

    Please help us…

    Regards-

    Sanjeeb

  • Posted 20 September 2021, 9:19 pm EST

    Dear Prabhat Sir,

    Still waiting for your kind support…

    Regards-

    Sanjeeb

  • Posted 20 September 2021, 9:40 pm EST

    Hello,

    This case has been replied to on the given link, please continue the thread there only:

    https://www.grapecity.com/forums/winforms-edition/operation-is-not-valid-due

    Regards,

    Prabhat Sharma.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels