C1FlexReport C1PrintOptions PrinterSettings ignored

Posted by: milo.sasinka on 13 December 2020, 6:36 am EST

  • Posted 13 December 2020, 6:36 am EST

    Hello

    I would like to switch our reports from C1Report to C1FlexReport. I have a problem when I try to print the report with a specific printer options, especially duplex and paper source. For printing I use following scenario:


    var printOptions = new C1PrintOptions();
    printOptions.PrinterSettings.DefaultPageSettings.PaperSource = anyPaperSource;
    printOptions.PrinterSettings.Duplex = System.Drawing.Printing.Duplex.Vertical;
    printOptions.PrintJobName = documentName;

    C1FlexReport report = GetReport();
    report.Render();
    report.Print(printOptions);


    When I debug the programm all properties are set properly (Duplex, PaperSource), but it looks like completely ignored by printing. With C1Report it works fine, see attached screenshots from the printer queue. I have also tried to print it from Report Designer (C1Report and C1FlexReport). C1FlexReport designer has the same issue, even I set duplex and paper tray in printer dialogbox, it's completely ignored. Perhaps I'm doing something wrong, but I have no idea what. I tried all examples I could find but it didn't help. Can you give me an example which works for you?

    Many thanks
    Milo

  • Replied 15 December 2020, 7:37 pm EST

    Hi Milo,

    We have forwarded this further for investigation and will let you know once we get any update on this.[Internal Tracking Id: C1WIN-24094]

    Regards,
    Prabhat Sharma.
  • Replied 15 December 2020, 8:10 pm EST

    Thank you Prabhat
  • Replied 31 January 2021, 9:33 pm EST

    Hello
    no news to this issue?
    Thanks
    Milo
  • Replied 2 February 2021, 1:28 am EST

    Hi Milo,

    We are getting in touch with the developers for an update and will let you know soon.

    Regards,
    Prabhat Sharma.
  • Marked as Answer

    Replied 3 February 2021, 1:52 pm EST

    Hello Milo,

    To further investigate this, the developers are asking to share the screenshot of the information shown in the TestPrinter dialog.

    Regards,
    Prabhat Sharma.
  • Replied 4 March 2021, 2:44 am EST

    Hi Prabhat

    sorry I'm not sure what exactly do you need. The screenshots are attached to the ticket. I attach them here again as zip file.

    Best regards
    Miloscreenshots.zip
  • Replied 4 March 2021, 3:53 pm EST

    Hi Milo,

    I am getting in touch with the developers to ask what actual information they need to further investigate this issue.

    Regards,
    Prabhat Sharma.
  • Replied 1 August 2022, 8:36 pm EST

    Hello Milo,

    The developers have fixed the issue in the latest version 2022V2, please upgrade to the latest version and see if it works fine at your end.

    printOptions.PrinterSettings.DefaultPageSettings.PaperSize = new System.Drawing.Printing.PaperSize { RawKind = 2 };

    https://cdn.grapecity.com/ComponentOne/2022v2/ComponentOneControlPanel_20222.1.3.exe

    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