New instance C1PrintPreviewControl vs redirected printers via RDP

Posted by: ivan.stanojkovski on 13 March 2024, 9:03 pm EST

    • Post Options:
    • Link

    Posted 13 March 2024, 9:03 pm EST

    Hi

    C1PrintPreviewControl c1PrintPreviewControl = new();

    When I create a new instance of C1PrintPreviewControl in one project and test in two different environments, instantiation works twice as slow.

    1. Test1: I start the application via RDP, but the local printers are not redirected, the instantiation takes about 1-2 seconds
    2. Test2: When I start the same application via RDP, but the local printer is redirected, the instantiation takes about 3-4 seconds

      Also this works slower on Dispose as well.

    What is your suggestion?

  • Posted 14 March 2024, 11:02 pm EST

    Hello,

    We ran a sample project on rdp with C1PrintPreviewControl (version = 8.0.20233.643) and calculated the time difference before and after the object instantiation. Unfortunately, we could not replicate the behavior you mentioned.

    The instantiation takes around 700–800 ms if printers are not redirected and around 800-900 ms if printers are redirected. Please refer to the attached images and sample project (see PrintPreviewControl.zip). We agree that there is a time difference, but it does not seem that significant.

    Could you please check this sample project and let us know if you face the same behavior with our sample too?

    Also, please let us know

    1. The version of C1 you are using.
    2. The number of printers you have on your end.
    3. The environment details (like CPU, RAM, OS build)

    If you are implementing things differently, could you please update the attached sample or provide us with a stripped-down sample so that we can observe and investigate the behavior on our end too?

    Regards,

    Uttkarsh

    PrintPreviewControl_RDP.zip

    Images.zip

  • Posted 19 March 2024, 10:01 pm EST - Updated 19 March 2024, 10:06 pm EST

    Hello,

    Here we have conducted one of our examples. There’s a form that contains a C1PrintPreviewControl embedded within it. When the “Test” button is clicked, an instance of this form, containing only that control, is created.

    It’s unclear to us why only during the initial launch on the host machine, when connected via RDP from a client computer, the loading of this control within the form takes about 3 seconds. However, subsequent launches are significantly faster, even when restarting the application without disconnecting the RDP, instantiation occurs more rapidly.

    On this host machine, there are a total of 16 printers, approximately half of which are local, and the other half are redirected, i.e., client printers via RDP.

    Attached is a screenshot from our testing, along with information about the type of computer on which we’re launching the application, i.e., the host machine.

    We kindly request a prompt response as this is a critical aspect of our business.

    Thank you very much.

  • Posted 19 March 2024, 10:35 pm EST - Updated 19 March 2024, 10:40 pm EST

    Also, using dotTrace from JetBrains, I see that 99% of the time spent creating an instance of C1PrintDocument is consumed by license validation.

  • Posted 20 March 2024, 7:39 pm EST

    Hello,

    We apologize for the inconvenience, but we require more specific details. We’ve initiated a new case ticket on our private portal for this matter. Please continue the conversation there to prevent any misunderstandings.

    Please visit https://developer.mescius.com/my-account/my-support and refer to the following case:

    Case ID : CAS-48212-M2W2H7

    Regards,

    Uttkarsh.

Need extra support?

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

Learn More

Forum Channels