Page 1 of 1

Request from user variable on displaying on print

Posted: Wed Feb 26, 2025 2:54 pm
by mchapman
I have a report that contains a variable that accepts a value from the user. When the report runs the user is able to enter the value and submit to the report. The report is then updated and displays the value entered by the user, however, when they choose to print the report the user value is not on the printed report.
This worked in a previous version, 2024.4.3, but does not work in 2025.1.4.

Is there a known bug surrounding this feature or a change I need to make on my end to handle this?

Re: Request from user variable on displaying on print

Posted: Wed Feb 26, 2025 11:02 pm
by Lech Kulikowski
Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.

Re: Request from user variable on displaying on print

Posted: Thu Feb 27, 2025 2:38 pm
by mchapman
Hey, thanks for getting back with me. I don't think sending a sample report will help. This issue is not reproducible in the Designer - Preview, only when running the report and then attempting to print.
We are using a custom cache helper in our project and to resolve this issue I had to comment out the following lines in the GetReportInternal method in the StiCacheHelper class:

if (CacheMode == StiServerCacheMode.StringCache || CacheMode == StiServerCacheMode.StringSession)
{
cacheGuid = GetReportCacheGuid(requestParams, GUID_ReportTemplate);
report = GetReport(cacheGuid);
}

Once those lines are commented out the report is printed correctly. This doesn't seem to have any side effects.

Re: Request from user variable on displaying on print

Posted: Thu Feb 27, 2025 4:13 pm
by Lech Kulikowski
Hello,

Without a sample it is difficult to say why it happens in your case. Sorry.

Thank you.