Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Wed Jan 22, 2014 1:13 pm

Hi,

I need to create a result file based on a template doc file, just like your demo did.
But there are more than one people to do this at same time, so my solution is to copy the original template file to a individual folder, then open it with Spire.Doc, insert some content, and save it.

Code: Select all
Document document = new Document("test.doc");
//something here
document.Close();


This works fine.

After this, I need to delete the test.doc.
Code: Select all
FileInfo cachfile = new FileInfo("test.doc");
cachfile.Delete();


But an error is raised:

The process cannot access the file 'XX:XX\XX\test.doc' because it is being used by another process.

I don't know why there is another process still using the file.
the
Code: Select all
document.Close();

has been excuted.

In general, how to delete a file just be used by Spire.Doc?
yours,
Ivan

ivanchain
 
Posts: 30
Joined: Wed Jan 22, 2014 12:42 am

Thu Jan 23, 2014 5:53 am

Hello,

Thanks for your feedback.
The issue has been transferred to our Dev team, once there are any progress form them, we will inform you at first time.
Sorry for inconvenience.
If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Tue Jan 28, 2014 8:05 am

The issue has been fixed. Our test team will test this fix. But we will have a big holiday from 30 of this month to Feb 6. So a new release including this issue will be released before Feb 20. Hope it will fit the progress of your application.

Thanks and Regards,
Harry
Technical Support / Developer,
e-iceblue Support Team
User avatar

harry.support
 
Posts: 180
Joined: Mon Nov 08, 2010 3:11 pm

Sat Feb 08, 2014 3:16 am

Hello,

The new hotfix spire.doc_hotfix_5.0.15 has been released. You can download it here.
http://www.e-iceblue.com/Download/downl ... t-now.html
Welcome to download and test it. Thank you.
If you have any questions, welcome to get it back to us.

Regards,
Benjamin
E-iceblue support team
User avatar

Benjamin Du
 
Posts: 82
Joined: Thu Jul 25, 2013 2:38 am

Tue Feb 11, 2014 9:47 am

Hello,

Have you tried the new hotfix? Have your issue been resolved? Could you please give us some feedback if convenient?
Thank you.
If there are any questions, welcome to get it back to us.

Regards,
Benjamin
E-iceblue support team
User avatar

Benjamin Du
 
Posts: 82
Joined: Thu Jul 25, 2013 2:38 am

Fri Mar 14, 2014 3:24 pm

Yes, the hot fix remove the problem!

I am too busy these days. I am sorry the delay to reply.
Thank you guys!

yours,
Ivan

ivanchain
 
Posts: 30
Joined: Wed Jan 22, 2014 12:42 am

Mon Mar 17, 2014 1:14 am

Thanks the reply. If there are any questions, welcome to get it back to us.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.Doc