We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

RelativeHorizontalPosition not compiling

Your code

builder.InsertImage(HomePageHeaderImage, RelativeHorizontalPosition.Page, 10, RelativeVerticalPosition.Page, 10, 50, 50, WrapType.Through);

doesn’t compile

Error 1 The name ‘RelativeHorizontalPosition’ does not exist in the current context

same for RelativeVerticalPosition and WrapType

Cannot find solution in the documentation


Thanks for your request. Try adding this:

using Aspose.Words.Drawing;

Best regards,