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
exporting and disk space
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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.
Last edited by Narcís on Fri Apr 22, 2005 1:48 pm, edited 1 time in total.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |