Parameters out of range

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v8)  /  Parameters out of range

DynamicPDF CoreSuite for .NET (v8) Forum

 Feb 23 2015 10:49 AM
I have previously been using a query as follows:

    select * from dbo.bill where billID = #Parameters["BillID"]#

To use this I was passing in the parameter dictionary as follows:

    ParameterDictionary parameters = new ParameterDictionary();
    parameters.Add("BillID", id);

This is working as expected however when I add another parameter and attempt to attach it to records box by using Parameters["Tariff"] or #Parameters["Tariff"]# then I am getting an index out of range error. I have checked that the code below contains 2 parameters:

    ParameterDictionary parameters = new ParameterDictionary();
    parameters.Add("BillID", id);
    parameters.Add("Tariff", id);

Any ideas as to what is causing this problem?
 Feb 23 2015 4:18 PM
Posted by a ceTe Software moderator
Hello,

Please send over the following details to support@cete.com so that we can look into it further?

1. DPLX file.
2. Full error message along with stack trace.
3. Exact version and build number of the DynamicPDF DLL file. You can get this information in DLL reference properties (Version and Descriptions fields) in Visual Studio.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 12:58 AM.