Is it possible to reduce the size of the printed gantt chart in order to fit more columns onto one page?
On an A4 page, once you have listed a few columns in the grid area there is very little room left for the timeline.
I have tried playing around with args.Graphics.ScaleTransform in the PrintPage event of the PrintDocument to no avail.
Hello mainstay
Could you please try one of these (or combination ) of the properties below:
void ultraGanttViewPrintDocument1_BeginPrint(object sender, System.Drawing.Printing.PrintEventArgs e) { ultraGanttViewPrintDocument1. AutoSizeGrid = Infragistics.Win.UltraWinGanttView.AutoSizeGrid.SizeColumnsToContent; ultraGanttViewPrintDocument1.AutoSizeTimelineColumns = Infragistics.Win.UltraWinGanttView.AutoSizeTimelineColumns.Optimized; }
void ultraGanttViewPrintDocument1_BeginPrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{
ultraGanttViewPrintDocument1. AutoSizeGrid = Infragistics.Win.UltraWinGanttView.AutoSizeGrid.SizeColumnsToContent;
ultraGanttViewPrintDocument1.AutoSizeTimelineColumns = Infragistics.Win.UltraWinGanttView.AutoSizeTimelineColumns.Optimized;
}
Please let me know if you have any questions.
Regards
Thank you for the sugesstion but this is not what I'm looking for. The properties you have recommended simply set the width of the columns.
What I need is to shrink the entire rendered image on the printed page. Are you able to offer any other solutiuons?