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.

Mon Jul 18, 2016 5:21 pm

I want to add a line to my word document. I have Spire.doc version 5.7.54.3035. I found this example but it is not working.

using Spire.Doc;
using Spire.Doc.Documents;
using Spire.Doc.Fields;

private void Test()
{
Spire.Doc.Document doc = new Spire.Doc.Document();
Section sec = doc.AddSection();
Paragraph para1 = sec.AddParagraph();
ShapeObject shape1 = para1.AppendShape(50, 50, ShapeType.Line);
}

I have this error

'Paragraph' does not contain a definition for 'AppendShape' and no extension method 'AppendShape' accepting a first argument of type 'Paragraph' could be found (are you missing a using directive or an assembly reference?)

Thanks

Sonia

sleveille
 
Posts: 1
Joined: Mon Dec 14, 2015 7:38 pm

Tue Jul 19, 2016 3:22 am

Dear Sonia,

Thanks for your inquiry.
The shape is only supported in Spire.Doc Pack(hot fix) Version:5.5.184(Beta), please try to use this version.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Mon Jul 25, 2016 8:39 am

Dear Sonia,

Did you try to use the version I mentioned ? Has your issue been resolved ?
Thanks for your feedback.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Return to Spire.Doc