July 23, 2009 at 4:47 pm
Hello all,
Please tell me how to move around prompt objects - drop down lists and their labels.
I have a report with 4 parameters - hence 4 prompts which I want to reposition a bit. I don't like their default positioning which seems like floating objects around each other.
Thanks,
Peter.
July 24, 2009 at 8:30 am
The layout is based on the order of your listed parameters (Report -> Report Parameters). You have the ability to move them up or down which will affect where they get displayed.
Eli
July 25, 2009 at 1:08 am
Thanks for the reply. Well I knew that. It is not enough for my purposes. I need better control.
August 13, 2009 at 12:14 am
HI
if using your report in APS.net page use external parameter prompts by manually setting controls like textbox,drop down etc..and passing param values directly to report. then hide the reportviewer parameter prompt section
Thanks
August 13, 2009 at 12:45 am
Do you have any examples by chance. I am not a .net developer but can pick up logic if I have code sample.
Thanks.
August 13, 2009 at 1:39 am
Try this
In Visual Studio – in an aspx page – Add a Microsoft Reportviewer control from the tools menu-Reporting tab.
Then add this code on any button click in the page
Change the report server url, report name and parameters in this code
//if report is deployed in a remote server
ReportViewer1.ProcessingMode = ProcessingMode.Remote;
//url of the serer
ReportViewer1.ServerReport.ReportServerUrl = new System.Uri("http://server:8081/Reports");
//path and name of the report
ReportViewer1.ServerReport.ReportPath = "/Dynamics/report1";
ReportViewer1.ShowParameterPrompts = false;
//parameter collection pass from the aspx page
List paramList = new List();
paramList.Add(new ReportParameter("EmpID", TextBox1.Text, false));
paramList.Add(new ReportParameter("ReportMonth", Month.Text,false));
paramList.Add(new ReportParameter("ReportYear", Year.Text,false));
this.reportViewer1.ServerReport.SetParameters(paramList);
// Process and render the report
ReportViewer1.DataBind();
August 13, 2009 at 2:50 am
It is very easy to move it up and down with up and down buttons available on Report Parameter Dialog box.
Regards,
Chirag Prajapati
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply