Page 1 of 1

exporting and disk space

Posted: Thu Apr 21, 2005 3:03 pm
by 9526659
I am using the export facilities of TChart AX7 to let the user save graphs to floppy (in visual basic):

TChart1.Export.asJPEG.SaveToFile("A:\filename.jpg")

I noticed that when the floppy is full, the function call doesn't flag an error, it creates a file of size 0 on the floppy. Is there a way to determine when this has happened to let the user know?

thanks

Posted: Fri Apr 22, 2005 10:45 am
by narcis
Hi qanta,

Yes, this method is a procedure, not a function.

You should do it manually checking disk space, exporting the chart to a stream to check it's size and if disk space is enough save the file to the disk.

Posted: Fri Apr 22, 2005 1:07 pm
by 9526659
OK, thanks