Catching CETE exception

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF CoreSuite for .NET (v8)  /  Catching CETE exception

DynamicPDF CoreSuite for .NET (v8) Forum

 May 23 2017 7:31 AM
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
 Jun 23 2017 3:13 PM
Posted by a ceTe Software moderator
Hello,
 
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 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.

All times are US Eastern Standard time. The time now is 10:48 PM.