FindObject Method and getdatasource return nothing or null

Magezi SagesseMagezi Sagesse DRCONGO
edited 3:57PM in FastReport .NET
I am trying to use FindObject methode on my report to find an object that is in my report but It does not find it, What is wrong:
Here is my code in vb.net:
graphiq = CType(chronoT.FindObject("graphiq"), FastReport.MSChart.MSChartObject)

The object that I need to use is called graphic.

error: reference not set to an instance of an object

I have the same problem with this code also :
table = CType(controleMois.GetDataSource("controletachemois"), TableDataSource)

The object I need to use is called controletachemois
error: reference not set to an instance of an object

I need your help to understand what's wrong

Leave a Comment