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
1065
Printing Gantt Chart
posted

Has the ultraganttview finally got printing functionality? It has been over 2 year, surely it cannot be that difficult to implement.

  • 53790
    posted

    Hi,

    I suppose that your question is connected with the previous post http://community.infragistics.com/forums/p/51472/277316.aspx#277316 . At that moment our UltraGanttView controls still does not support printing functionality, but maybe you could used one fo these approaches below:

    Option 1: using CreateGraphics() method

    Bitmap bmp = new Bitmap(1000, 1000, ultraGanttView1.CreateGraphics());

    ultraGanttView1.DrawToBitmap(bmp, new Rectangle(0, 0, 1000, 1000));

    bmp.Save("..\\..\\Test.bmp");

    Process.Start("..\\..\\Test.bmp");

     

    Option 2: using ultraSchedulePrintDocument1 and InitializeTimelineView() event. Please take a look at the attached sample for more details. Also you could used InitializeWeekView(), InitializeMonthViewSingle() and so on events

     

    Let me know if you have any questions.

    GanttViewDrawTask_2.zip