Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1015
AddInlinePicture causes a fuzzy image for 16x16 while using WordDocumentWriter
posted

Hello all,

I'm currently using the WordDocumentWriter to format and output a generated report, part of which contains a table that has two columns worth of images. The images are in .PNG format, sized 16x16 pixels, and are clear when I use them in other parts of my application. However, whenever I insert the images into the table cells, and view the document, the image is bad quality, very unclear and difficult to see detail on. 

Here's the code I'm using to create the image cells:

        Private Sub CreateTableImageCell(ByVal img As Image)
            writer.StartTableCell(_centercellprops)
            writer.StartParagraph()
            writer.AddInlinePicture(img)
            writer.EndParagraph()
            writer.EndTableCell()
        End Sub

Is there a setting on the WordDocumentWriter that will prevent the distortion of the images based on format type? Is there a better way to insert the image into the table cell that I'm unaware of, whether it be using a different file type for the image?
Any and all help/suggestions are appreciated.

Thanks!