When I do the print from the sales quote card, there is an error occurred.
The Statement report does not have a DataItem that uses the table (Table 36 Sales Header) specified in the function SetTableView.
In other company instance, it is working. I created a new company, it also working there. But, in the current production instance, it is not working.
Answers
This error occurs when you're trying to call a report with a wrong table in the filter.
When you make a call to a report, for example from a form/page, then you are able to use SETTABLEVIEW to filter the report with the value from the record. For example you can filter on the item you're currently using the SETTABLEVIEW. But if the report you're calling doesn't have Item as a DataItem, then you will get the above error.
So in order You need to check where the report is called from and the code used to call it.