Bienvenidos

Recuerda que tus comentarios son importantes y recuerda agradecer si te fue útil algun artículo publicado aquí.

L1f3 15 a D@nc3 Flo0r

domingo, 20 de septiembre de 2009

The type or namespace name 'Reporting' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

Cuando se nos presenta este error:


 

The type or namespace name 'Reporting' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)

The type or namespace name 'LocalReport' could not be found (are you missing a using directive or an assembly reference?)


 


 

Es posible que la razon sea porque en el web config te hagan falta estos assemblies.


 

Asi que en el web.config agrega estas lineas en la seccion de los assemblies.


 

<assemblies>

<add
assembly="Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

<add
assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</
assemblies>


 

Saludos,

lunes, 14 de septiembre de 2009

Parametros en Reporting Service

using Microsoft.Reporting.WebForms;


 


 

ReportParameter[] parm = new ReportParameter[1];

parm[0] = new ReportParameter("CodProducto", GridView1.SelectedDataKey.Value.ToString());

ReportViewer1.ServerReport.SetParameters(parm);

ReportViewer1.ServerReport.Refresh();