Get printstyle from outlook

Posted by: fsegui on 16 February 2022, 1:27 am EST

  • Posted 16 February 2022, 1:27 am EST

    Hello,
    Using C1Schedule, I'm using the PrintInfo.Preview().
    There are 5 styles defined but I cannot add style.
    How can we add a style? I want to add a style that I've in Outlook365 (calendar weekly style)

  • Replied 16 February 2022, 10:52 pm EST

    Hi,

    We have shared your requirements with the Development team to get their insights on it. We will let you know as soon as we have an update.
    In the meantime, you can refer to the Product sample WYSIWYGPrinting at the location \Documents\ComponentOne Samples\WinForms\v4.5.2\Schedule\CS in your system, which implements the printing as it is you are seeing on the screen. You can use it in the WeekView type to print the Schedule similar to the Outlook 365 style.

    Regards
    Avnish

    [Internal Tracking ID : C1WIN-26830]
  • Replied 16 February 2022, 11:36 pm EST

    Hi,
    Ok, I'm waiting for the feedback.
    Regarding the WYSIWYG sample, it does not fit to the page. Is this possible?
    Best regards,
    Florent
  • Replied 17 February 2022, 9:18 pm EST

    Hi Florent,

    As per the development team, you can try to create a new print template as shown in this sample: https://github.com/GrapeCity/ComponentOne-WinForms-Samples/tree/master/NetFramework/Schedule/CS/PrintDocTemplates. Please note it is a complicated process because it requires writing vb or c# scripts, there is no designer application currently available and it will be hard to debug.

    The team suggests using the method shown in the WYSIWYG sample is the best option for now. You can change the height and width of the C1Schedule control being used for printing in the btnPrint_Click method to change how much image is shown on the first page. Please refer to the modified sample attached.

    Regards
    Avnish
    WYSIWYGPrinting.zip
Need extra support?

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

Learn More

Forum Channels