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 Jan 26, 2016 3:12 pm

Hi
I have tested Spire to convert Word to HTML and it works perfectly for our need.
However, we also need to add an initial paragraph to the document and, when using the simple source code we are getting an error message

THE CODE
Spire.Doc.Paragraph para1 = section.Paragraphs[0];

THE ERROR MESSAGE
Error 1 The type or namespace name 'Paragraph' does not exist in the namespace 'Spire.Doc' (are you missing an assembly reference?)

Any help will be appreciated and thanks in advance!
Moises [email protected]

mbrainsky
 
Posts: 2
Joined: Wed Jan 20, 2016 8:01 pm

Tue Jan 26, 2016 3:21 pm

I found the problema myself:
I had been qualifying the keyword Paragraph with Spire.Doc because there was a duplicate definition with System.Windows.Documents. I just removed the reference for System.Windows.Documents and Spire worked just fine

Thanks!!!

mbrainsky
 
Posts: 2
Joined: Wed Jan 20, 2016 8:01 pm

Wed Jan 27, 2016 1:43 am

Hi,

Thanks for using our Spire.Doc component .
Welcome to write to us again for further problems.

Have a nice day.
Best Regards,
Amy
E-iceblue support team
User avatar

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

Return to Spire.Doc

cron