Is it possible to register default parameters for ALL reports ?
Hello,
I need to have two parameters always available in ALL my reports, so I was thinking if I did something I saw in an earlier thread the parameters would be available.
This is what I tried :
Parameter p = new Parameter("MyDate");
p.DataType = typeOf(DateTime)
Report.Dictionary.Parameters.Add(p)
(I thought adding to the Dictionary and not to the Parameters collection was the key issue, but it didn't worked)
This is what I had done before :
Parameter p = new Parameter("MyDate");
p.DataType = typeOf(DateTime)
Report.Parameters.Add(p);
The result is the same :
The parameter is available in the parameters section only when I open the designer after doing the addition, or when opening an old report (edition).
If I select the New menu item inside the designer, the new report has no parameters defined in the parameters section.
Is there any workaround for this ?
Thank you.
Luis
I need to have two parameters always available in ALL my reports, so I was thinking if I did something I saw in an earlier thread the parameters would be available.
This is what I tried :
Parameter p = new Parameter("MyDate");
p.DataType = typeOf(DateTime)
Report.Dictionary.Parameters.Add(p)
(I thought adding to the Dictionary and not to the Parameters collection was the key issue, but it didn't worked)
This is what I had done before :
Parameter p = new Parameter("MyDate");
p.DataType = typeOf(DateTime)
Report.Parameters.Add(p);
The result is the same :
The parameter is available in the parameters section only when I open the designer after doing the addition, or when opening an old report (edition).
If I select the New menu item inside the designer, the new report has no parameters defined in the parameters section.
Is there any workaround for this ?
Thank you.
Luis
Comments
Thank you