Displaying the report filter on a report

Stimulsoft Reports.NET discussion
Post Reply
MerChen
Posts: 15
Joined: Mon Jun 28, 2010 12:23 pm

Displaying the report filter on a report

Post by MerChen »

Hi all, I was wondering whether it's possible to display the report filter on a report? More often than not, the end user of the report has nothing to do with running the reports and it would be helpful to them to know how the report was filtered.

Thanks!
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Displaying the report filter on a report

Post by Jan »

Hello,

Unfortunately this option is not available now in our report engine. But we plan release this functionality in few next official releases.

Thank you.
prasanna
Posts: 2
Joined: Thu Sep 20, 2012 12:10 pm

Re: Displaying the report filter on a report

Post by prasanna »

Dear Jan,

Is this option [Filter on report viewer] is available to 2012 release ?

i'm looking forward for your reply

prasanna
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Displaying the report filter on a report

Post by HighAley »

Hello.

Could you specify what do you want to see in the report?
Do you want to see a filter condition as a string?

Thank you.
prasanna
Posts: 2
Joined: Thu Sep 20, 2012 12:10 pm

Re: Displaying the report filter on a report

Post by prasanna »

Iam trying to achieve functionality like this in your demo site http://web.stimulsoft.com/?reportname=P ... ingCountry

I created a variable and filter condition in report.filter option works in design window,But not in view window.

it through's error 'Object reference not set to an instance of an object.'


Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.]
Stimulsoft.Report.Web.StiRequestFromUserPanel.CreateTextBoxTo(StiVariable variable, Int32 width) +1199
Stimulsoft.Report.Web.StiRequestFromUserPanel.CreateControlsVariables() +1492
Stimulsoft.Report.Web.StiRequestFromUserPanel.UpdateControls() +174
Stimulsoft.Report.Web.StiRequestFromUserPanel..ctor(StiWebViewer viewer, ArrayList reportVariables, StiReport report) +425
Stimulsoft.Report.Web.StiWebViewer.CreateChildControls() +1980
System.Web.UI.Control.EnsureChildControls() +102
Stimulsoft.Report.Web.StiWebViewer.OnLoad(EventArgs e) +137
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
C# Code [Viewer page]:

Code: Select all

try
            {
                string applicationDirectory = HttpContext.Current.Server.MapPath(string.Empty);
                string reportPath = System.IO.Path.Combine(applicationDirectory, "Reports", User.Identity.Name, Request.QueryString[0].ToString() + ".mrt");

                if (System.IO.File.Exists(reportPath))
                {
                    Stimulsoft.Report.StiReport report = new Stimulsoft.Report.StiReport();
                    report.Load(reportPath);
                    StiWebViewer1.Report = report;
                }
                else
                {
                    Response.Write("Report Not Found :(");
                }
            }
            catch (Exception ex)
            {
                Response.Write(ex.ToString());
            }
What could be the problem,please find the mrt file attached.

Thanks
Attachments
Report4.mrt
(25.82 KiB) Downloaded 305 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Displaying the report filter on a report

Post by Alex K. »

Hello,

Please check the last prerelease build.

Thank you.
Post Reply