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?
Hello Mainstay,
At that moment we didn`t implement such kind functionality. Please let me know if you think that I could help you with something.
Hello,
are there an evolution with the 2013.1 ?I'm interstet about the "fit to page" functionnality with my Gantt.
Thanks
Please used your Infragistic`s account to download the source code. The source code is only for our customers with accounts and it is not correct to share this code in the forum thred.
Let me know if you have any questions.
Thanks but the purpose of my request was to avoid having to download 2GB worth of data for two files worth a few kb.
Using your Infragistic`s account you are able to download the source code for all our controls. To do this go to our site: Infragistics.com -> Account -> My Keys and Downloads -> Documentation & SDK
Let me know if you have any further questions.
Can you please post the source code for the following classes so that I can assess how the chart is being redered in order to determine if there is a way I can do it myself :
Infragistics.Win.UltraWinGanttView.UltraGanttViewPrintDocumentInfragistics.Win.Printing.UltraPrintDocument