Rajesh Karunakaran
Programmer
Hi dears,
In my 'SaveIt' method in the form, I save my invoice and updates all participating tables with TABLEUPDATE(). Then I call 'PrintIt' method. In that it calls 'send_to_preview' method which actually launches the report using 'REPORT FORM <report nam> PREVIEW'. Inside the report's "Init" method, I select the data needed for report and my final cursor is 'myRepData'. When it is prepared I explicitly select it as current alias using SELECT myRepData. Then I get the preview and its perfect.
However, when I click the print icon from the toolbar of the Preview window,
I get error message "myRepData is not related to the current work area".
This happens with both 'Private data session' on and off.
Anyone has any quick idea (if this is a known issue) as to what causes this problem?
In my 'SaveIt' method in the form, I save my invoice and updates all participating tables with TABLEUPDATE(). Then I call 'PrintIt' method. In that it calls 'send_to_preview' method which actually launches the report using 'REPORT FORM <report nam> PREVIEW'. Inside the report's "Init" method, I select the data needed for report and my final cursor is 'myRepData'. When it is prepared I explicitly select it as current alias using SELECT myRepData. Then I get the preview and its perfect.
However, when I click the print icon from the toolbar of the Preview window,
I get error message "myRepData is not related to the current work area".
This happens with both 'Private data session' on and off.
Anyone has any quick idea (if this is a known issue) as to what causes this problem?