Adding an SSRS Report to a Dashboard

I am trying to add an SSRS Report to a dashboard. From what I have seen the best way to do this is via code. I made a button with an onClick event and I am just testing opening forms with it but nothing works.

	LaunchFormOptions launchObject = new LaunchFormOptions(); 
	launchObject.ValueIn = "XEN100"; 
	ProcessCaller.LaunchForm(oTrans, "CSWG1030", launchObject); 

This is the code I was using and a lot of code for opening forms looks like this. The one main problem I keep running into is I get the error “The name ‘oTrans’ does not exist in the current context”
I have also tried this.oTrans and it doesn’t like the keyword “this”
What is an oTrans and why does everyone online act like it is just something that works automatically? Am I missing a using statement?

oTrans is available on most(all) deployed apps… and yes even in dashboards (deployed ones)
Is this dashboard a deployed dashboard? If it is not, deploy it first, then add the button as a customization to the deployed DLL.

1 Like

That worked. Thank you! This had me hung up for a while.