Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report Action - click through to remote report 3

Status
Not open for further replies.

SQLScholar

Programmer
Aug 21, 2002
2,127
0
0
GB
Hey all,

Is it possible to do a click through (and pass parametres etc) to a report that is not part of the VS solution. If so how? I only seem to have a choice of reports that are part of the solution.

Dan

----------------------------------------

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Dr. Seuss

Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
 
My first guess is yes, but it migth be necessary to import the existing report to the current soultion to make it work..

From report manager you can export (save) the report out to disk from the properties tab.

What version of ReportingServices are you using?
 
Code:
				ReportName = "/Application/INV/PUR001" 
				'If LstParam Is Nothing Then LstParam = New Generic.List(Of Microsoft.Reporting.WinForms.ReportParameter)()
				'LstParam.Add(New Microsoft.Reporting.WinForms.ReportParameter("PO", PoNum, False))
				'frmSvrReport.Show()  'calls a form with a ReportViewer control.
				'LstParam = Nothing
				'below calls IE and loads the report specified in ReportName and passes a parameter called PoNum to the report.
				System.Diagnostics.Process.Start("iexplore.exe", "[URL unfurl="true"]http://servername/reportserver?"[/URL] & ReportName & "&rs:Command=Render&PO=" & PoNum)

--------------------------------------------------
“Crash programs fail because they are based on the theory that, with nine women pregnant, you can get a baby a month.” --Wernher von Braun
--------------------------------------------------
 
yes - just use the "jump to url" option

this can be set to an expression so use the paramters to append strings to the report path to prefill the parameters you want et voila..

e.g. " & fields!fieldname1.value & "&param2=" & fields!fieldname2.value

etc etc - you can also pass other items like the format of the report and whether to display parameters area etc as part of the url

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Aha.

Thanks all. I will look into trying this shortly. Not needed as such straight away, but i have noticed that we are going to have too many reports if we cant link in this way.

Dan

----------------------------------------

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Dr. Seuss

Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top