Hi.
I have deigned a report around a stored procedure that has 2 Input parameters. The 2 parameters are declared in the stored procedure as follows:
@CompanyName VARCHAR(100) = NULL
,@CompanyID UNIQUEIDENTIFIER
I have set up the report with the following parameter list:
@CompanyName | varChar | 100 | 0 | 0 | Nullable = true | input | #Parameters["CompanyName"]#
@CompanyID | uniqueIdentifier | 0 | 0 | 0 | Nullable = false | input | #Parameters["CompanyID"]#
I have used this exact same setup in other reports and it works fine. In this report the error is generated if Nullable = true is used on the @CompanyName parameter. Turn it to false and it works OK.
I do not understand why it won't work in this case but does for other reports. The only difference in the stored procedure in this case is that it uses a Union query instead of a simple Select.
Please help, I am on a short deadline on this project.
Thank you
Tim.
Dplx Parse Exception
Re: Dplx Parse Exception
Forum member · Jul 24, 2008Hi.
I have further trouble with this now. I have just copied a report where this works, saving the design under a new name, changing the name of the stored procedure it uses and now I have the same problem again.
The original works fine, the copy does not. The design of the stored procedures is the same, the data they return is the exact same design, same field names etc. just different source tables.
Please help.
Thank you
Tim.
Re: Dplx Parse Exception
Support · Jul 24, 2008Hello Tim,
Can you please send over the dplx file, stored procedure and the code you are using to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it further.
Thanks,
ceTe Software Support Team.
Re: Dplx Parse Exception
Forum member · Jul 24, 2008Hi.
I have used a slightly different approach in the way my code works which gats round the problem. I have created some overloaded procedures as follows:
public static Document CreatePDFReportDocumentsDueToExpire(string CompanyName)
{
return CreatePDFReportDocumentsDueToExpire(CompanyName, Guid.Empty);
}
public static Document CreatePDFReportDocumentsDueToExpire(Guid CompanyID)
{
return CreatePDFReportDocumentsDueToExpire(null, CompanyID);
}
private static Document CreatePDFReportDocumentsDueToExpire(string CompanyName, Guid CompanyID)
{
ParameterDictionary parameters = new ParameterDictionary();
parameters.Add("CompanyName", CompanyName);
parameters.Add("CompanyID", CompanyID);
DocumentLayout report = new DocumentLayout(ApplicationConfiguration.DocumentsDueToExpireDesign);
Document document = report.Run(parameters);
return document;
}
Kind regards
Tim.