exporting and disk space

TeeChart for ActiveX, COM and ASP
Post Reply
qanta
Newbie
Newbie
Posts: 7
Joined: Mon Apr 18, 2005 4:00 am

exporting and disk space

Post by qanta » Thu Apr 21, 2005 3:03 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Apr 22, 2005 10:45 am

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.
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
Image Image Image Image Image Image
Instructions - How to post in this forum

qanta
Newbie
Newbie
Posts: 7
Joined: Mon Apr 18, 2005 4:00 am

Post by qanta » Fri Apr 22, 2005 1:07 pm

OK, thanks

Post Reply