closeFile doesn't work

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
yochima
Posts: 1
Joined: 09 Sep 2009, 17:41

closeFile doesn't work

Post by yochima » 09 Sep 2009, 18:01

Hi,

Code: Select all

Try
                CadViewerControl1.CloseFile()
Catch ex As Exception

End Try

            File.Copy(fileName, "C:\jobe\temp\toto.plt")
            CadViewerControl1.LoadFile("C:\jobe\temp\toto.plt")


i'm using a temporary file : toto.plt
the first time I load it, it's working !
but, the second time I have a popup wich say that my file toto.plt is ever used.
This error is on my ligne :

Code: Select all

 File.Copy(fileName, "C:\jobe\temp\toto.plt")
what method do I have to use?
isn't the CloseFile() method ??

Thanks

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: closeFile doesn't work

Post by support » 01 Oct 2009, 13:07

Hello.
The exception you receive doesn't depend on CloseFile() method. You triying to create toto.plt file that is already exists.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply