Adding parameters in Web Form
Adding parameters at runtime is as simple as calling the Parameter object's Add method. The Parameter's Add method is made available because of the Web Form's inheritance of ceTe.DynamicPDF.ReportWriter.DplxWebForm. See Using a DPLX file from a Web Form for more on associating a DPLX file with a Web Form. For adding report parameters from within a non Web Form example see, Using a DPLX File.
The following code example demonstrates how to add a parameter to the DPLX file:
public class DplxWebExample : ceTe.DynamicPDF.ReportWriter.DplxWebForm
{
private void Page_Load(object sender, EventArgs e)
{
Parameters.Add( "OrderID", 10360 );
DrawPdfToWeb("NewReport.pdf");
}
}
Public Class DplxWebExample
Inherits ceTe.DynamicPDF.ReportWriter.DplxWebForm
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Parameters.Add("OrderID", 10360)
DrawPdfToWeb("NewReport.pdf")
End Sub
End Class