SSRS2008 ResizeImage Script error when rendering report
Hi,I have a RDL file from RS2005 and upgraded to RS2008.There is a company image control on the page Header in the report with a size 4.5cm by 1cm.The image file is stored on the report server and it marked as external with FitProportional attribute in the control.when the report is generating, it caused a script error and when I debugged it using VS2008, the resizeimage(this) function is highlighted in the axd file. The error is Line: 9Error: Object expectedhttp://cid-847f2ea645f4ceb7.skydrive.live.com/embedrow.aspx/.Public/ObjectedExpectedError.jpgThis resizeimage(this) is contained within the IMG tag for this page header image control.<IMG onload="this.fitproportional=true;this.pv=0;this.ph=0;ResizeImage(this); "SRC="/ReportServer/Reserved.ReportViewerWebControl.axd?ExecutionID=ll1jzi3p33hat455pfysbg55&ControlID=d467835921f34d7ca6da1e11bc1fd5ae&Culture=2057&UICulture=9&ReportStack=1&OpType=ReportImage&StreamID=54a84801af18441e88d65c27adbdd7d0"/>http://cid-847f2ea645f4ceb7.skydrive.live.com/embedrow.aspx/.Public/ErrorDebug.jpghttp://cid-847f2ea645f4ceb7.skydrive.live.com/embedrow.aspx/.Public/ErrorDebug2.jpgAlso, this script error does not happened every time. ?? Have anyone got any ideas?Thanks.
August 24th, 2009 12:14pm

Hi haulage, Which version of SQL Server Reporting Services 2008 are you using? The ResizeImage corrupted is a known issue in previous version, and has been resolved in the latest version. The latest version is Cumulative Update #3 for SQL Server 2008 SP1(10.0.2713) Please update to latest version to solve the issue. If you have any more questions, please feel free to ask. Thanks, Jin ChenJin Chen - MSFT
Free Windows Admin Tool Kit Click here and download it now
August 25th, 2009 12:59pm

Hi Jin, Thank you for the reply. I have followed your link, downloaded and installed the Cumulative Update package 3 for SQL server 2008 SP1. Now the dlls in the ReportServer bin directory have file version :- Microsoft.ReportingServices.HtmlRendering.dll - 10.0.2723.0 Microsoft.ReportingServices.ImageRendering.dll - 10.0.2723.0 Microsoft.ReportingServices.DataRendering.dll - 10.0.2723.0 and the other dll files are mixture of either 10.0.2723.0 or 10.0.2531.0. And the sqlservr.exe is verion 2007.100.2723.0. Unfortunately, I still encounter the same problem as long as I set the image control to FitProportional. Please help, thanks!
August 25th, 2009 6:09pm

No-one is able to help?Please.....
Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2009 11:30am

Hi haulage,I am on a testing.If there is anything updated, I will inform you.Appreciated your understanding.Thanks,Jin ChenJin Chen - MSFT
September 3rd, 2009 11:34am

Hi haulage,I have tried to reproduce the issue using the follow steps:1.Create a Report Project in Business Intelligence Development Studio 20052.Create a report in the project.3.Add a image in the page header.4.Set the Source to be "External"5.Set the Value to be "/image.jpg"6.Set the Sizing to be "FitProportional"7.Save this project and then copy and paste to the Reporting Serivces 2008 server machine.8.Open this project using Business Intelligence Development Studio 2008(The project will be converted to Reporting Serivces 2008 project)9.Deploy the project to the Report Server 2008.Everything works fine. That means I don't encounter the error.Could you please post me a sample report, that will help me to reproduce the issue and then solve it.Thanks,Jin ChenJin Chen - MSFT
Free Windows Admin Tool Kit Click here and download it now
September 3rd, 2009 12:46pm

Hi Jin,Thank you for the reply.Please find a sample report and logo from the following links.http://cid-6fa86d15eb4d3ea5.skydrive.live.com/self.aspx/.Public/ResizeImage%20Problem%20Sample%20Report/ImageResizeProblemReport.rdlhttp://cid-6fa86d15eb4d3ea5.skydrive.live.com/self.aspx/.Public/ResizeImage%20Problem%20Sample%20Report/Logo.jpgPlease change the connection setting within the RDL file.I generated the report using URL with the following parameters : https://localhost/ReportServer/Pages/ReportViewer.aspx?/exentrareports/ImageResizeProblemReport&rs:ClearSession=true&rs:SessionID=&rs:Format=HTML4.0&rc:Toolbar=true&rc:JavaScript=TrueJust to let you know the error may or may not appears. Usually happen the first time I run the report.Thank you for the help.
September 4th, 2009 11:01am

HI Jin,Is there any developement on this issue?Or is there anyone can help please!Thanks
Free Windows Admin Tool Kit Click here and download it now
September 10th, 2009 10:30am

Hi haulage,Sorry for later. I have not got a alert message.I will do a testing with your sample reports as soon as possible.Appreciate your understanding.Thanks,Jin ChenJin Chen - MSFT
September 10th, 2009 10:35am

Hi haularge,In my testing environment, the error occurs once. So, I will try more testingto check the root cause.Another question to be confirmed, does the error occur everytime in your environment?Thanks,Jin ChenJin Chen - MSFT
Free Windows Admin Tool Kit Click here and download it now
September 10th, 2009 12:57pm

Hi Jin,Again, thanks you for the reply.To answer your question, the error doesNOT occur everytime in my environment. Only occasionally.Thanks,
September 10th, 2009 3:41pm

Hi Jin,I am wondering is there any progress on this issue please?We are urgently require a solution for this problem. This is holding up our new server goes live.Please, Please....Thanks,
Free Windows Admin Tool Kit Click here and download it now
September 16th, 2009 4:20pm

Hi Jin,Just another message in case you have not got a alert message like last time.:)Thanks,
September 17th, 2009 2:20pm

Hello,I believe this is a bug in the product wherein the function call to resize the image gets called before the function defintion itself is loaded in the page. This results in the JavaScript error you are expecting. The fact that it happens intermittently is additional evidence that makes me believe this is that bug.We are currently planning to put this fix into the next service pack for SQL Server 2008, but the release date for this service pack has not been deccided yet. If this is an especially urgent issue for you, please contact Microsoft support to discuss support options for the nearer term.Thanks and let me know if you have additional questions.-ChrisSSRS TeamThis posting is provided "AS IS" with no warranties, and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
September 25th, 2009 6:11pm

any updates on this? Or is CU3 the answer, having this on both our 2008 sp1 servers Is there a KB ref for this issue?
October 8th, 2009 6:34pm

CU3 didnt solve the issue - any help appreciated!
Free Windows Admin Tool Kit Click here and download it now
October 13th, 2009 12:24pm

Having the same problem. Any workarounds available?Looks like the javascript in ReportViewer control hasn't been tested properly as there is atleast one other issue I know of (FixedHeaders not working). This seems like standard functionality to me, so am I using the ReportViewer in the wrong way or something? How else am I supposed to render reports though?
October 21st, 2009 5:02am

Hi Chris, Could you please let us know what the current situation of this issue is please? When do we get the next service pack release with this fix etc?Thanks.
Free Windows Admin Tool Kit Click here and download it now
November 3rd, 2009 3:14pm

I upgraded to 2008 SP1 CU5 and I still see this error.
December 6th, 2009 2:43am

Does anyone know of a workaround or what situations cause this problem to show up. A lot of reports, but not all, have this error, including ones that have FitProportional images and similar ResizeImage functions. The error happens both in development and in production.
Free Windows Admin Tool Kit Click here and download it now
December 6th, 2009 4:22am

I did a Find/Replace of <Sizing>FitProportional</Sizing> To <Sizing>Fit</Sizing> which fixed the JavaScript errors.
December 6th, 2009 8:23pm

This bug still exists in 2008 SP1 CU8
Free Windows Admin Tool Kit Click here and download it now
July 28th, 2010 11:35pm

Is this bug coming from the ReportViewer control in the application or the SSRS Server? Maybe the bug is fixed by using a newer ReportViewer control?
July 29th, 2010 12:14am

My testing seems to indicate that this bug is fixed by the new VS 2010 ReportViewer control. Updates to SQL Server don't appear to have any effect.
Free Windows Admin Tool Kit Click here and download it now
August 2nd, 2010 1:30am

I am getting the same issue, but with ReportViewer 2005 SP1 backed by SQL Server 2008 R2. (We can't use the ReportViewer 2010 control yet as we are stuck with .NET 2.0. until we upgrade for the next release of our product. The behaviour I see is exactly as decribes above, it seems to execute the resizeImage before the whole page has been downloaded from the web server and started occuring when images were added to our reports using FitProportional. The issue is especially prominent when the pages are large, we have a couple of reports whose page size is > 1000 rows and we get the issue everytime. Thanks, Theo
December 16th, 2010 5:50am

We use SQL Server 2008 SP2 and still encounter this issue. As Theo has mentioned, this occurs only when the page size is long (in cour case > 1000 rows). I don't understand why MS has not fixed this yet. Cheers, Arun
Free Windows Admin Tool Kit Click here and download it now
February 18th, 2011 6:30am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics