Is there a cxGrid and a ReportBuilder report, linked to the same DataSource. When I am printing the report, it show error: "canvas does not allow drawing".
This is my code to solve.
Screen.Cursor := crHourGlass;
cxGridModeloDBTableView1.DataController.DataSource := nil;
try
pprReportBuilder.Print;
finally
cxGridModeloDBTableView1.DataController.DataSource := dsModeloView;
Screen.Cursor := crDefault;
end;
Anyone can help me to solve this problem by another way? Thanks!