Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
hthakkar
Starting Member
3 Posts |
Posted - 2006-03-01 : 08:50:28
|
I have a webservice which creates an image returns that image in the form of Byte array. I want to consume this webservice and display that image on my report. When I see my report in the Preview tab of the report designer, it displays that image but when I deploy my report on the report server, image doesn't show up. I have copied app_code.dll (dll for the webservice) to the following locations:C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssembliesC:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssembliesC:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer\binHere is the code for the webservice:****************************************************Imports System.WebImports System.Web.ServicesImports System.Web.Services.ProtocolsImports System.DrawingImports System.DiagnosticsImports System.IO<WebService(Namespace:="http://tempuri.org/")> _<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _Public Class ServiceInherits System.Web.Services.WebService<WebMethod()> _Public Function HelloWorld() As Byte()Dim marker As New Bitmap("C:\Inetpub\wwwroot\help.gif")Dim imageStream As New System.IO.MemoryStreammarker.Save(imageStream, System.Drawing.Imaging.ImageFormat.Jpeg)Trace.Write("Before Write")Return imageStream.ToArray()End FunctionEnd Class******************************************************I have referenced this dll saved in public assemblies folder from my report project and wrote a function to call the above mentioned webservice function HelloWorld() and called the function from value property of an image control on the report. btw, I am using SQL Server 2005 reporting services.Does anybody has any idea what am I missing?Thanks |
|
|
|
|