stevenlee100
Member
Registered:1262715360 Posts: 24
Posted 1282221801
Reply with quote
#1
Hi Does anyone know how to open a report from a C# script within a process? Thanks, Steve
Jerome
Guru
Registered:1158198299 Posts: 5,507
Posted 1282226315
Reply with quote
#2
What do you mean by 'open' exactly?
__________________ Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
bigfootger
Veteran
Registered:1179314494 Posts: 139
Posted 1282237989
Reply with quote
#3
Hi Stevenlee100, I guess you like to open a report (sql server reporting) on the client side, right. You can open a Url with javascript in a popup window or you can show the report through an IFRAME. Does that help? Best regards
__________________ Metastorm BPM Remote Expert Help & Web Consultations - http://connect.convedo.com/free-1-hour-web-consultation
stevenlee100
Member
Registered:1262715360 Posts: 24
Posted 1282828898
Reply with quote
#4
Hi, Sorry, should have made it clearer... Rather than the user having to click a report from the Reports page to open it, I would like to be able to open it via some sort of user action on a form (within a process). Perhaps a link or something on the form? Thanks
Jerome
Guru
Registered:1158198299 Posts: 5,507
Posted 1282830372
Reply with quote
#5
That ain't SQL Server reporting then, that's Metastorm reporting! Do the same as for an admin form (that is all they are really) and add a 'new folder' button. The process name is the Report Group name, and the action name is the Report name.
Attached Files
Test_Report_Button.zip
(21.05 KB, 38 views)
__________________ Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
stevenlee100
Member
Registered:1262715360 Posts: 24
Posted 1282912885
Reply with quote
#6
Thanks Jerome. I didn't realise it was that simple! Much appreciated.
Jerome
Guru
Registered:1158198299 Posts: 5,507
Posted 1282916579
Reply with quote
#7
It's only simple when you know how ;-)
__________________ Post an example, and we will have a much better idea what the problem is. In about 90% of posts, the problem is one of communication. Examples bridge that gap.
thelostone1
New Member
Registered:1187798800 Posts: 7
Posted 1562025353
Reply with quote
#8
Thanks for this!!! As a follow up. How would you pass the eFolderId from the parent window to this report? Thank you -lee
thelostone1
New Member
Registered:1187798800 Posts: 7
Posted 1562030540
Reply with quote
#9
Never mind. I research this forum and found the solution. You need to setCookie and getCookie. Search the form for the solution.
BMellert
Guru
Registered:1225130168 Posts: 688
Posted 1562159631
Reply with quote
#10
Or turn on AllowFilterParams in web.config and pass filter variables in the URL. I open a report this way. e.g. a link like /Metastorm/eReport.aspx?Map=<report group name>&Action=<report name>&FilterParams=<para name>;<value>;<type> [:<param name 2>;<value 2>;<type 2> ...]