Free Support Forum - aspose.com

Image and cell

Please,

How insert an image in celltable?

thanks

marc

Dim LogoImage As New Aspose.Pdf.Image
LogoImage.ImageInfo.ImageFileType = ImageFileType.Jpeg
LogoImage.ImageInfo.File = Request.PhysicalApplicationPath & "myfile.JPG"

and after?

Dear marc,

Thanks for your consideration.

After your code add this line:
cell.Paragraphs.Add(LogoImage)

If you want the image fit the cell, add a line like this:
LogoImage.ImageInfo.FixWidth = cellwidth - cellBorderWidth