reporting services - Creating SSRS report using C# code behind -


i creating ssrs report using code behind c# not tool. want add rd:userdefined true tag query parameter using c# code behind. how can add tag code dataset giving xml error.

my code add queryparameter :

xmlelement queryparameters;     xmlelement queryparameter;      queryparameters = addelement(query, "queryparameters", null);      queryparameter = addelement(queryparameters, "queryparameter", null);     addattribute(queryparameter, doc, "name", "@reportid");     addelement(queryparameter, "value", _objdynamicprocedureparameters.reportid);     addelement(queryparameter, "rd:userdefined", "true"); 

i want add queryparameter should shown on reportviewer filter.

i have resolved this.

added reportparameters tag add report parameters :

  reportparameter = addelement(reportparameters, "reportparameter", null);   addattribute(reportparameter, doc, "name", "rolename");   addelement(reportparameter, "datatype", "string"); 

Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -