Adding Parameters
Any parameters that need to be used for the creation of the PDF document can be passed into the DocumentLayout's Run method. Parameters should be added to a ParameterDictionary object and it is that ParameterDictionary that is passed into the DocumentLayouts Run method. For more information on using a DPLX file see Using a DPLX file or see Using a DPLX file from a Web Form for more on associating a DPLX file with a Web Form.
The following snippet of code demonstrates how to declare a dictionary of parameters, add parameters then use those parameters in the creation of the PDF document.
DocumentLayout reportDocument = new DocumentLayout( @"Filepath/design.dplx" );
ParameterDictionary parameters = new ParameterDictionary();
parameters.Add( "OrderID", 10360 );
Document document = reportDocument.Run( parameters );
Dim Report As DocumentLayout = New DocumentLayout("Filepath/design.dplx")
Dim Parameters As ParameterDictionary = New ParameterDictionary
Parameters.Add("OrderID", 10360)
Dim MyDocument As Document = Report.Run(Parameters)