Telegram_2023-11-11T18

<< Click to Display Table of Contents >>

Navigation:  Telegram > 2023 > 11 > 11 >

Telegram_2023-11-11T18

Telegram link

 

2023-11-11T18:43:06

 

No TForm should exist in any IW application. If this is a container for your report component, use a TDataModule never a TForm. Also, the owner should never be the \Application\ instance because \Application\ is a VCL.Forms object not used in IW applications. If you are destroying it after generating the report, you don't need a owner. Just do it like:

 

// considering that TFDepositoReport is a DataModule:

 

FDepositoReport := TFDepositoReport.Create(nil);

 

try

 

FDepositoReport.PreparaPDF(UserSession.pathDoc+Webapplication.AppID+'\\ricevuta.pdf');

 

finally

 

type: link FdepositoReport.free ;

 

end;

 


 

Telegram link

 

2023-11-11T18:44:20

 

remove any reference to Vcl.Forms unit in your IW application units as well.

 


 

Telegram link

 

2023-11-11T18:52:46

 

If using as SA also crashes the application, can you please run it while debugging and collect the call stack when the exception happens?

 

And the last thing, what's your ReportBuilder version?