Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
How to export Ultramonthviewsingle to PDF
posted

I have set up a application that fills in Calendar using the UltraMonthViewSingle that displays 5 months of events. I am now trying to get it to export to PDF so that the calendar can be emailed to all employess. I have no problem doing the email part just how to export the calendar to PDF.

I have seen examples of exporting Grid but tried using logic to replace the grid with Calendar and doesn't like the code.

Any examples of exporting calendar to PDF.

  • 34810
    Offline posted

    Hello Tom,

    I have been investigating into the behavior you are looking to achieve, and there is no built-in exporter that will export the UltraMonthViewSingle control to PDF, although there is one for the UltraGrid. I am guessing that you tried to utilize the UltraGridDocumentExporter in this case, but that will not work.

    Instead, the best thing I can recommend in order to do this is to utilize the DrawToBitmap method off of the UltraMonthViewSingle, which every derived Windows Forms Control has. This will allow you to make an Image from your UltraMonthViewSingle, and then you can use the Infragistics Documents Engine to create a PDF with an image on it.

    There is a sample showing how to create a PDF with an Image on it here.

    Please let me know if you have any other questions or concerns on this matter.