Trying to utilze a UserID exposed property in a .DPLX file that has a stor proc parameter of @UserID = "this userid from .CS"?
OR
how would I include a parameter in the .cs code before I call runreport().
NOTE: the userid may or may not be available to the .DPLX file due to an authenticated VS non-authenticated page request.
Example .CS
---------------------------------------------------------
protected long UserID
{
get
{
return PESecurity.GetSecurityObject().UserID;
}
}
if (System.IO.File.Exists(sReportPath))
{
string sReportPath = Server.MapPath(Request.ApplicationPath) + @"utils\test.dplx";
ceTe.DynamicPDF.ReportWriter.DocumentLayout report = new ceTe.DynamicPDF.ReportWriter.DocumentLayout(sReportPath);
ceTe.DynamicPDF.Document document = report.Run();
document.DrawToWeb();
Response.End();
}
Utilze exposed page variable in .DPLX stor proc parameters
Re: Utilze exposed page variable in .DPLX stor proc parameters
Support · Apr 10, 2008Hello,
You can pass parameters to the stored procedure from the code behind file without any problem. You can refer to the SimpleReportStoredProcedure example downloaded with the product download. The example shows how to pass parameters to stored procedures at run time from the .cs file.
Thanks,
ceTe Software Support Team