Woutero Posted April 18 Share Posted April 18 Sherzod Within UniCanvas1AfterSubmit I'm trying to use UniCanvas1.SaveToFile(fName,tiBMP); But the file being saved is always zero bytes. Has this been resolved? This problem has been reported previously: Quote Link to comment Share on other sites More sharing options...
Woutero Posted April 18 Author Share Posted April 18 I'm not drawing anything on the UniCanvas. I have inserted a UniChart on the UniCanvas. I am using UniCanvas1.SubmitData but maybe the UniCanvas has not received the data of the UniChart? So what setting must I use on the UniCanvas to make sure the UniCanvas has received the data of all components/controls on the UniCanvas? Or how does one transfer/save the image of components on the UniCanvas, or is this not possible? Quote Link to comment Share on other sites More sharing options...
Woutero Posted April 18 Author Share Posted April 18 Sherzod I just did a test to draw something via UniCanvas.BitmapCanvas.Rectangle(10, 10, 100, 100); and then the UniCanvas1.SaveToFile(fName,tiBMP); work correctly, so that has been resolved. But I still want to save a portion of the screen (whatever components are on the Canvas, e.g. UniPanel with UniChart etc.) to a file or stream. Can this be done using a UniCanvas or can one only draw to the UniCanvas? Quote Link to comment Share on other sites More sharing options...
Woutero Posted April 18 Author Share Posted April 18 So to summarize: All I want to do is to save a portion of the screen (e.g. a UniPanel containing UniChart etc.) to a file or stream. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 18 Share Posted April 18 5 minutes ago, Woutero said: But I still want to save a portion of the screen (whatever components are on the Canvas) to a file or stream. Also this post may help you: Quote Link to comment Share on other sites More sharing options...
Woutero Posted April 18 Author Share Posted April 18 Thanks Sherzod! 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.