KingOrmon Posted June 25, 2013 Share Posted June 25, 2013 Hello, pReport : TUniFormPreview; begin pReport := TUniFormPreview.Create(UniApplication); pReport.Free; .... If I create a form and call free method a exception is produced: Uncaught ReferenceError: O38B is not defined (anonymous function) fireext-all.js:21 continueFireEventext-all.js:21 fireEventArgsext-all.js:21 a.fireEventArgsext-all.js:21 fireEventext-all.js:21 Ext.cmd.derive.onProxyLoadext-all.js:21 Ext.cmd.derive.processResponseext-all.js:21 (anonymous function)ext-all.js:21 Ext.apply.callbackext-all.js:21 (anonymous function)ext-sync-min.js:8 Ext.cmd.derive.onCompleteext-all.js:21 (anonymous function)ext-sync-min.js:8 Ext.cmd.derive.onStateChangeext-all.js:21 (anonymous function) Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted June 25, 2013 Administrators Share Posted June 25, 2013 pReport := TUniFormPreview.Create(UniApplication); pReport.Free; What's the point of above code? In general you must display a newly created Form and let user destroy it by closing it. Quote Link to comment Share on other sites More sharing options...
KingOrmon Posted June 25, 2013 Author Share Posted June 25, 2013 I need to call a function that render a PDF file, I don´t need show form. Error raises without calling any function. The code will be... pReport := TUniFormPreview.Create(UniApplication); pReport.Render...... pReport.Free; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.