I have a SSRS report and I wanted to open this report based on current company.
I did customization, added an Epibutton event.
there is part of my code:
private void epiButtonC1_Click(object sender, System.EventArgs args)
{
EpiDataView edv = (EpiDataView)oTrans.EpiDataViews[“DMRCorAct”];
var qt = edv.dataView[edv.Row][“ActionID”];
if (!String.IsNullOrEmpty(qt.ToString()))
{
ProcessStartInfo sInfo = new ProcessStartInfo("IEXPLORE.EXE","-nomerge http://ReportServer?/reports/ActionReport&Company=Session.CompanyID&ActionID=" + qt.ToString());
Process.Start(sInfo);
}
else
{
MessageBox.Show("Enter Action Number!");
}
}