Sign In  Sign Up Live-Chat

Error stating that InsertImage requires 11 arguments

Last post 09-09-2008, 2:59 AM by alexey.noskov. 3 replies.
Sort Posts: Previous Next
  •  09-08-2008, 9:13 AM 142925

    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);


    This message was posted using Page2Forum from Aspose products - Documentation
     
  •  09-08-2008, 10:27 AM 142938 in reply to 142925

    Re: Error stating that InsertImage requires 11 arguments

    Hi

     

    Thanks for your inquiry. There is no InsertImaged overload that requires 11 arguments. Please see the following link for more information:

    http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/aspose.words.documentbuilder.insertimage_overloads.html

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  09-08-2008, 1:24 PM 142973 in reply to 142938

    Re: Error stating that InsertImage requires 11 arguments

    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

     
  •  09-09-2008, 2:59 AM 143075 in reply to 142973

    Re: Error stating that InsertImage requires 11 arguments

    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.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
View as RSS news feed in XML