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.

Sat Apr 18, 2015 3:17 am

Hi, I found a type of doc file can't be create from document.
I attached the doc file by the thread, please check it like this:

Code: Select all
Dim cachfile As FileInfo = New FileInfo(strUploadPath + printtemp + getname + ".doc")
Dim document As Document = New Document(strUploadPath + printtemp + getname + ".doc")
 document.SaveToFile("打开她并保存为另一个名字的文件.Docx", FileFormat.Docx)


Just open the doc with document object, and then save it.
you will get this error:

Code: Select all
System.ArgumentException: '', hexadecimal value 0x01, is an invalid character.
  at System.Xml.XmlUtf8RawTextWriter.InvalidXmlChar(Int32 ch, Byte* pDst, Boolean entitize)
  at System.Xml.XmlUtf8RawTextWriter.WriteElementTextBlock(Char* pSrc, Char* pSrcEnd)
  at System.Xml.XmlUtf8RawTextWriter.WriteString(String text)
  at System.Xml.XmlWellFormedWriter.WriteString(String text)
  at spr673.10()
  at spr673.0(Stream A_0, Document A_1)
  at spr673.0(String A_0, Document A_1)
  at Spire.Doc.Document.4(String A_0)
  at Spire.Doc.Document.SaveToFile(String fileName, FileFormat fileFormat)


No luck.
It's a big problem, the problem doc is create in word2007 in normal way.

yours,
Ivan

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

Mon Apr 20, 2015 2:47 am

Dear Ivan,

Sorry for delay as weekend.
I have reproduced your issue, and posted it to our dev team. Once it is resolved, we will inform you immediately.

Best Regards,
Betsy
E-iceblue support team
User avatar

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

Mon Apr 27, 2015 10:12 am

Hello,

Sorry for keep you waiting.
Now the issue has been resolved, please download the Spire.Doc Pack version:5.4 from the following link and try again:
http://www.e-iceblue.com/Download/downl ... t-now.html
If there are any questions, welcome to get it back to us.

Best Regards,
Betsy
E-iceblue support team
User avatar

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

Wed Apr 29, 2015 8:24 am

Hello,

Have you tried the newest version? Has your issue been resolved?
Thanks for your response.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Fri May 15, 2015 10:21 am

Unfortunately,
I can't try the Spire.Doc Pack Version:5.4 as you mentioned, because my lisence is Standard Edition!
Any suggestion?

And I tried the pire.Doc Standard Edtition on your mentioned page, it works, but show:
---------------------------------------------
Evaluation Warning : The document was created with Spire.Doc for .NET.
---------------------------------------------

I return to version 5.2. You waste my time.

I am your LISCENCE USER. Please give me the right dll!


yours,
Ivan

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

Mon May 18, 2015 2:02 am

Dear Ivan,

Sorry for delay as weekend.
I checked your purchase information, and know you have upgraded your license to Spire.Doc Pro Edition on 27th,Jan. Please try the Spire.Doc Pack Version:5.4 again.
If there are any questions, welcome to get it back to us.

Best Regards,
Betsy
E-iceblue support team
User avatar

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

Wed Jun 10, 2015 10:41 am

Dear,

Sorry my my last reply, the last problem is I use the wrong license file, after my update.

And yes, in the new version 5.4, the problem is gone!

Thank you very much, you are super cool!

yours,
Ivan

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

Thu Jun 11, 2015 2:13 am

Hello,

Please feel free to contact us if you have any questions or needs.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Return to Spire.Doc