This is a migrated thread and some comments may be shown as answers.

como pasar parametros por programacion en un ReportViewer

1 Answer 701 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Luis
Top achievements
Rank 1
Luis asked on 11 Dec 2012, 05:31 PM
hi 
bueno mi problema es que intento enviarle a un ReportViewer  algunos parametros por programacion y no me deja siempre sale igual
utilizo el siquiente codigo con el cual segun la documentacion estaria correcto pero  aun que no genera un  error tampoco trae la informaciĆ³n
si alguien me puede ayudar  
 Dim Report As New Report1 

 Report.ReportParameters("idempresa").Value = "29"
        Report.ReportParameters("idsucursal").Value = "34"
        Report.ReportParameters("idfactura").Value = "12"
 ReportViewer1.RefreshReport()

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 12 Dec 2012, 03:22 PM
Hello Luis,

Thank you for your interest in Telerik Reporting. The official language used for our correspondence with clients is English, so we would appreciate if you continue this discussion in English.

About your inquiry, the code you've provided is not sufficient on its own to do what you expect. Basically you create a report instance, set values for its parameters and invoke RefreshReport() method of a report viewer. The missing piece is where you assign the report to the report viewer. For more information on that please review the respective help topic for the target application you're working on e.g. for web site/application: How to: Add report viewer to a web page.

All the best,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Luis
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or