Posted 25 April 2018, 6:24 am EST
I’m getting some log notifications of exceptions caught when I run the print preview sample you guys have provided here:
https://www.grapecity.com/en/blogs/combining-the-usage-of-c1report-and-c1printdocument
Specifically, when the form runs and loads the print preview, I get the following:
Exception thrown: '#cje.#bje.#dje' in C1.C1Report.4.dll
Exception thrown: 'System.Reflection.TargetInvocationException' in mscorlib.dll
Exception thrown: '#cje.#bje.#dje' in C1.C1Report.4.dll
Exception thrown: 'System.Reflection.TargetInvocationException' in mscorlib.dll
This occurs on line 61 where the PrintPreviewControl.Document setter is called:
C1PrintPreviewControl1.Document = C1PrintDocument1
These exceptions don’t cause the application to crash, so I’m assuming they’re being handled within C1. However, I’m getting similar exceptions caught and handled in my own codebase when I set the same property. The exception i get looks like this, although I’m assuming it might be for similar reasons:
Exception thrown: '#Wvd.#Mje' in C1.C1Report.4.dll
Would it be possible to get some feedback on why these types of exceptions occur, so I can see if there’s anything that needs to be done differently?
We’re doing a Proof-of-concept with a new version of .NET and C1Report, so I need to chase this problem down to see if it’ll surface as an issue later.