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.

Tue Jun 17, 2014 11:28 am

Up to now, I have been saving docx files in my code using:

doc.SaveToFile(wordfilename, FileFormat.Auto)

just recently I have been working with .doc files, using the same code I get the error message:

'requested operation cannot be performed on a file with a user-mapped section open'

I tried this instead:

doc.SaveToFile(wordfilename, FileFormat.Doc)

but got the same message

Why?


Chris Anderson

cjacs
 
Posts: 10
Joined: Fri Feb 21, 2014 11:11 am

Wed Jun 18, 2014 1:42 am

Hello Chris,

Thanks for your feedback. Please attach your document here for testing.
Thanks,
Gary
E-iceblue support team
User avatar

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

Tue Jun 24, 2014 9:54 am

Hi

I tried to send by email but it bounced - see separate thread.

Anyway, this is what I tried to send you: (zip file attached on next message)


Hi Amy

I have attached a visual studio 2008 vb.net project. I am using .net framework 3.5 version of your DLLs

See attached screenshot of error – and the code on same screen

See attached project properties that shows the spire dll version info

Windows 8.1 64bit o/s

If I change the source file to be different to the destination file, I don’t get the error

In my project, you will need to change the variable where the doc is stored, I used w:\


To avoid complexity, In my project I don’t have code to modify the doc, but offcourse in real life I have code in there to do that.

I want to load and save to the same wordfile

The same error occurs wther I use fileformat.auto or fileformat.doc for the save command

Thanks for your help

Regards

Chris

cjacs
 
Posts: 10
Joined: Fri Feb 21, 2014 11:11 am

Tue Jun 24, 2014 9:59 am

THIS SYSTEM IS NOT LETTING ME UPLOAD A ZIP FILE! - CLICK ON ADD A FILE THEN SUBMIT NOTHING
HAPPENS.

CAN YOU GIVE ME ALTERNATIVE WAY OF UPLOADING FILE TO YOU AS YOUYR EMAIL IS BOUNCING-SEE SEPARATE MESSAGE ABOUT THIS

CHRIS ANDERSON

cjacs
 
Posts: 10
Joined: Fri Feb 21, 2014 11:11 am

Wed Jun 25, 2014 1:44 am

Hello,

Thanks, we have received your file, and we will investigate the issue and get it back to you ASAP.

Sincerely,
Gary
E-iceblue support team
User avatar

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

Fri Jun 27, 2014 2:01 am

Dear Chris,

I sent you the following message by e-mail on June 25. Did you receive it?

Dear Chris,

Thanks for providing further information about the error.

The Spire.Doc.dll v5.0.14.54035 in your project does have the error. Sorry for the inconvenience.
If you want to continue using Free edition, please upgrade to Free Spire.Doc for .NET Version:5.1. I have confirmed that it worked fine with the latest free version.

Best Regards,
Amy


Have you tried Free Spire.Doc for .NET Version:5.1? Did it resolve your issue>?
Thanks for your feedback.

Please feel free to contact us if you have any problems.

Best Regards,
Amy
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Tue Aug 09, 2016 12:56 pm

I am having same error when saving file after watermark and using spire.doc free version 5.5.

m.umairanwaar
 
Posts: 1
Joined: Tue Aug 09, 2016 12:51 pm

Wed Aug 10, 2016 2:00 am

Hi,

Thanks for your inquiry.
I suggest you try to use the latest Spire.Doc Pack(hot fix) Version:5.7.54 firstly. After trying this version, if the problem persists, please offer us the sample document for investigation.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Fri Aug 12, 2016 8:02 am

Hi,

Did you test the version I mentioned ? Has your issue been resolved ? If not,please offer us the sample document for investigation.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Return to Spire.Doc