I have dynamic PDF generator and the following line of code is throwing an object reference error:
bill.run(parameters)
Is there any way that I can put a catch round this to determine which of my parameters is causing the issue as far as I can see all the generated parameters seem to be OK but it is also drawing information
Catching CETE exception
Re: Catching CETE exception
Support · Jun 23, 2017Hello,
You can use Try catch block as shown below to catch any exceptions.
try
{
DocumentLayout report = new DocumentLayout(@"file path of DPLX file");
Document document = report.Run();
document.Draw(@"Path to save the PDF");
}
catch(Exception ex)
{
Console.WriteLine(ex.Message + "\n" + ex.StackTrace + "\n" + ex.InnerException);
Console.Read();
}
If you continue getting the error on Draw or Run method then please email the following details to [^a|mailto:support@cete.com|opennewwindow|support@cete.com^].
1. DPLX file.
2. Full error message along with stack trace.
3. Code sample or project which uses static data to recreate the error.
4. Table structure from which you are getting data.
Thanks,
ceTe Software Support Team.