FindObject Method and getdatasource return nothing or null

Magezi SagesseMagezi Sagesse DRCONGO
edited 8:04PM 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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.