Hi Team,
We are using _grid.Print(UltragridLayout_, PrintDocument_, RowPropertyCategories.Hidden) to print out the grid.
However, we found the memory increased everytime after we do a printing opertaion and making our application stale if a large amout of grid is printed. The memory won't go down even after printing finished.
I did a profiling for the printing function, I found everytime after printing finished, the UltraColumns will be doubled in the grid. Below is the stack trace to show how this duplicated columns are generated.(tried on both infragistic 8.2 and 9.1)
UltraGridBand.InitColumns(UltraGridBand[])UltraGridBand.InitListManager(BindingManagerBase, string, UltraGridBand[])UltraGridColumn.InitPropertyDescriptor(PropertyDescriptor, UltraGridBand[])UltraGridBand.InitColumns(UltraGridBand[])UltraGridBand.InitListManager(BindingManagerBase, string, UltraGridBand[])UltraGridLayout.ListManagerUpdated(BindingManagerBase)UltraGridLayout.ListManagerUpdated()UltraGrid.PrintHelper(UltraGridLayout, PrintDocument, RowPropertyCategories)UltraGrid.Print(UltraGridLayout, PrintDocument, RowPropertyCategories)
Any idea what's the reason for this and how to fix it?
Many Thanks,
Xin
Hello Xin,
I tried this and was not able to reproduce it. I attached my sample to this post for you to review it. If the issue still persists what you could do is upgrading for the latest service release available for your current version or either download the trial for Net Advantage 11.1 and test your application agianst it.
Please do not hesitate to ask if something comes up.
Hi Boris,
We raised a request to fix this quite a while ago and verified the fixed the version works(11.1 should definitely work). You can cloase this issue now.
Thanks,