cancel
Showing results for 
Search instead for 
Did you mean: 

User comments

Former Member
0 Kudos

Hi All,

I have been struggling with this for a couple of days now. I created a C# web app. The app loads an invoice report in CR XI R2. What I want is to provide a little section on the report the user can add text to after the report has been loaded. This text does not go back to the database. I just want it to print out when the user prints the report. The report takes one static parameter, an invoice number passed to it be the app.

Now I tried adding another static parameter called comments. When the report loads it prompts the user for a comment and places it on the report. That is fine. However when I try to print the report I get prompted for the invoice number. I would like it to use the invoice number it already used to load the report the first time.

Thanks a ton for your help

Cheers

Strychtur

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

It sounds like you may have some kind of postback issue where the parameter is losing its value when you try to print the report. One test to confirm this is if you navigate pages of the report, does the same thing happen (assuming you have multiple pages to navigate)?

Depending on the logic of the application, make sure you are setting the parameter values on every postback to see if that solves the issue.

Also, if you are calling the viewer.RefreshReport() method, that will cause the values of the paramter to be lost. You shouldn't need this call so try commenting this out and see if it resolves the issue.

-MJ

Former Member
0 Kudos

thanks MJ I'll give it a try.

Answers (0)