Click here to Skip to main content
15,902,447 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Well this time my problem is that I'm trying to display a Report in printpreview but this report has over 9,000 pages and when the preview is processing around the 5,000 page, stops working. I've read that the GDI supports 10,000 objects and each report page uses 2 objects, so I think it might be imposible to display my report so I want to ask you if you could help me to display this report, is there another way to display it not using GDI? or may be something like GDI? well thank you very much!
Posted

Look at this MSDN article regarding a registry entry for the maximum number of per-process GDI objects. Post Win 2000 seems to have a limit of 65,536 objects.
 
Share this answer
 
Thanks. I've already saw that solution, right now I'm just finding the way to change GDI limit in Windows seven
 
Share this answer
 
Comments
JRickey 25-Oct-11 18:47pm    
Are you able to use regedit to change it? My Win7 Pro 64-bit has the key shown in the article.

If you want to change via code look at http://www.switchonthecode.com/tutorials/csharp-snippet-tutorial-editing-the-windows-registry and http://msdn.microsoft.com/en-us/library/windows/desktop/ms724878%28v=vs.85%29.aspx (sorry, I don't see how to make those as links). I'm not sure what access level you will need to change that key value.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900