Hi,
I am using Microsoft SQL server 2008 reporting service to generate PDF reports for my application.
All
was working fine, until I start to get the following error. I came to know after some google that this is because of some JPG images having metadata. If I have png image then its fine, but for me to convert these jpg to png is not an option, since all I have
available is JPG.
I
installed service pack 1 as well, but its same. I have following SQL server installed.
"Microsoft
SQL Server 2008 (SP1) - 10.0.2531.0 (X64) Mar 29 2009 10:11:52 Copyright (c) 1988-2008 Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.0 <X64> (Build 6002: Service Pack 2)"
I
found few solutions like mentioned here http://support.microsoft.com/kb/967618But
thats for 2005. Surprisingly, already solved error for 2005 coming for 2008.
Am I missing something? Please help me.
Non-negative number required.
Parameter name: value
Description: An
unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Non-negative
number required.
Parameter name: value
Source Error:
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
This is an old bug in Sql Server Reporting Service 2005, however it has been fixed. This bug should not exist in Sql Server Reporting Service 2008. So I would recommend you update the latest sevice page for Sql Server Reporting Service 2008. Here to workaround
this issue, you could convert the JPEG images you are using to PNG images. You can try to see whether it helps.
i understand that this is old bug for 2005 but its appearing for me on SSRS 2008 as well. i have put the latest service pack as well. but to no avail.
it works when image is png but for me to work with only is not an option since i have to work on already uploaded jpg images and out of them some images give me this error.
We also ran into this issue on our SQL reporting server (10.50.2550.0). The a customer had uploaded a custom image for a report that triggered this bug. The resolution was to convert the image from a JPG to a PNG.
coolsteam
0 Points
2 Posts
PDF Rendering Fails with Reporting Service for some JPG images...
Jun 13, 2010 12:14 AM|LINK
Hi, I am using Microsoft SQL server 2008 reporting service to generate PDF reports for my application.
All was working fine, until I start to get the following error. I came to know after some google that this is because of some JPG images having metadata. If I have png image then its fine, but for me to convert these jpg to png is not an option, since all I have available is JPG.
I installed service pack 1 as well, but its same. I have following SQL server installed.
"Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (X64) Mar 29 2009 10:11:52 Copyright (c) 1988-2008 Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.0 <X64> (Build 6002: Service Pack 2)"
I found few solutions like mentioned here http://support.microsoft.com/kb/967618 But thats for 2005. Surprisingly, already solved error for 2005 coming for 2008.
Am I missing something? Please help me.
Non-negative number required.
Parameter name: value
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Non-negative number required.
Parameter name: value
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.Stack Trace:
Regards
ssrs 2008 pdf rendering jpg image
You-Hu Fu
Star
8174 Points
795 Posts
Re: PDF Rendering Fails with Reporting Service for some JPG images...
Jun 16, 2010 08:44 AM|LINK
Hi,
This is an old bug in Sql Server Reporting Service 2005, however it has been fixed. This bug should not exist in Sql Server Reporting Service 2008. So I would recommend you update the latest sevice page for Sql Server Reporting Service 2008. Here to workaround this issue, you could convert the JPEG images you are using to PNG images. You can try to see whether it helps.
Regards,
Challen Fu
Feedback to us
Microsoft One Code Framework
coolsteam
0 Points
2 Posts
Re: PDF Rendering Fails with Reporting Service for some JPG images...
Jun 16, 2010 09:28 PM|LINK
Hi,
thanks for you reply.
i understand that this is old bug for 2005 but its appearing for me on SSRS 2008 as well. i have put the latest service pack as well. but to no avail.
it works when image is png but for me to work with only is not an option since i have to work on already uploaded jpg images and out of them some images give me this error.
thanks again.
cadsjo
Member
2 Points
1 Post
Re: PDF Rendering Fails with Reporting Service for some JPG images...
Sep 16, 2010 10:27 AM|LINK
Hi,
You can try to convert the jpg images to png images in memory... And then showing them on the reports.
HTH,
Cadsjo
Andacious
Member
2 Points
1 Post
Re: PDF Rendering Fails with Reporting Service for some JPG images...
Feb 05, 2013 07:30 PM|LINK
We also ran into this issue on our SQL reporting server (10.50.2550.0). The a customer had uploaded a custom image for a report that triggered this bug. The resolution was to convert the image from a JPG to a PNG.