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

Free Support Forum - aspose.com

Error stating that InsertImage requires 11 arguments

asposeDocumentBuilder.InsertImage(image,
    RelativeHorizontalPosition.Page,
    ConvertUtil.InchToPoint((float)Convert.ToDecimal(System.Configuration.ConfigurationSettings.AppSettings["AsposeBarcode\_InchesLeft"])),
    RelativeVerticalPosition.Page,
    (asposeDocumentBuilder.PageSetup.PageHeight - ConvertUtil.InchToPoint((float)Convert.ToDecimal(System.Configuration.ConfigurationSettings.AppSettings["AsposeBarcode\_InchesBottom"]))),
    imageWidth,
    imageHeight,
    WrapType.None,
    WrapSide.Both,
    true,
    null);

Hi

Thanks for your inquiry. There is no InsertImaged overload that requires 11 arguments. Please see the following link for more information:
https://apireference.aspose.com/words/net/aspose.words/documentbuilder/methods/index

Best regards.

I see that.

However, I need to get this running and all I did is upgrade from an old version (2006) to a current version and this is the only error I have left. I modified the arguments to agree with those on at the url you sent but I still get an error. What would the difference be?? I just inherited the situation and jsut wnat to get everything currrent.

Thanks in advance for your help.

Joe

Hi

Thanks for your inquiry. I think you can use the following code:

Shape wordImages = builder.InsertImage(img,
    RelativeHorizontalPosition.Page,
    left,
    RelativeVerticalPosition.Page,
    top,
    width,
    height,
    WrapType.None);
wordImages.WrapSide = WrapSide.Both;
wordImages.BehindText = true;

Hope this helps.

Best regards.