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.

Thu May 22, 2014 10:05 pm

Searching here revealed no results. How do I align an image?


Code: Select all
Dim p1 As New Bitmap(image.FromFile(tempfolder & "\logo\logo1.jpg"))
        Dim picture As Fields.DocPicture = document.Sections(0).Paragraphs(0).AppendPicture(p1)
     
        Dim pWidth = p1.Width
        Dim pHeight = p1.Height

        Dim newWidth = 200
        Dim newHeight = newWidth / pWidth
        picture.Width = newWidth
        picture.Height = pHeight * newHeight

craigreilly
 
Posts: 1
Joined: Thu May 22, 2014 7:00 pm

Fri May 23, 2014 2:48 am

Hello,

Thanks for your inquiry.
There are some properties of picture you can use, such as VerticalAlignment, HorizontalAlignment.

If there are any questions, welcome to get it back to us.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Tue May 27, 2014 9:30 am

Hello,

Has the issue been resolved? Could you please give us some feedback if convenience?

If there are any questions, welcome to get it back to us.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.Doc