How to use "PrintDocument" to print "System.Drawing.Printing.PrintDocument"

Posted by: levanduyet on 29 March 2024, 6:04 pm EST

  • Posted 29 March 2024, 6:04 pm EST

    Hi,

    I have “System.Drawing.Printing.PrintDocument” that I was created from other source.

    How can I use “PrintDocument” from C1 to let user preview and print “System.Drawing.Printing.PrintDocument” object.

    I have tried but I don’t know what should do.

    Thanks,

    Duyet Le

  • Posted 30 March 2024, 5:01 pm EST

    Hi,

    Another question is that, I saw on the “PrintDocument Overview”

    Note: ComponentOne PrintDocument for WinForms is compatible with both .NET, and .NET Framework. But, the WinForms .NET Edition does not include rich design-time support yet. We will enhance it in the future releases.

    It means that I could not use it on my project base “Windows Application” on “.NET 6.0” ?

    Thanks,

    Duyet Le

  • Posted 1 April 2024, 3:46 am EST

    Hello Duyet Le,

    We are sorry, but you cannot use “System.Drawing.Printing.PrintDocument” with C1PrintDocument as both components are based on different architectures.


    As for your other question,

    As microsoft changed their architecture in NET 6 and later versions, we are implementing designers for the controls in NET6 and later versions. You can still use PrintDocument in your project base “Windows Application” on “.NET 6.0” but currently we do not provide rich design-time support. We plan to enhance it in future releases.

    Regards,

    Uttkarsh.

Need extra support?

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

Learn More

Forum Channels