ReportViewer Error, OutOfMemory
Problem
When you run a report, you get an error message that includes the following
“ReportViewer Error” and “Exception of type 'System.OutOfMemoryException' was thrown.”
Solution
This typically happens when the report contains too many images or very large images or both and is caused by a limitation with the Report Viewer. Below are some suggestions for avoiding this situation.
Reduce the size of images before you import them
Reduce the size of stored images for Parts and Colors
Open the Parts or Colors form under Purchasing on the menu
Click the ‘Resize Photos’ button on the top of form
Enter in a Max Dimension in pixels and click OK. All stored images where the height or width is larger than the entered dimension will be reduced in size (maintaining the current height x width ratio) so that neither the height nor width will be larger than the entered size. For example if an image is currently stored at 1000 x 500 and the Max Dimension is entered as 500 the image would be resized to 500 x 250.
Reduce Logos stored for Businesses
Open Businesses and select a Business that has a stored Logo image
Select the Logo tab and note the current size of the image is displayed above the image
Right-click the image and use ‘Save As…’ to export to a file
Resize the image file with an external application such as Paint
Right-click the image and use ‘Change Image…’ to import the new or modified file