Programmatically inserted inline image is dithered in Word 2003

I am inserting a .tif as an inline image into a Word document. In Word 2003 the image is dithered.

Word 2000

Word 2003 (difference in size is due to monitor resolution in Virtual PC)
This is how the image is diplayed and printed.

Code:

'Logo Dimensions (in inches)
Global Const LOGO_HEIGHT As Single = 2
Global Const LOGO_WIDTH As Single = 2

'***********************************************************************************************
Private Sub cmdOk_Click()
'...
  With ActiveDocument
    .InlineShapes.AddPicture _
      FileName:=Logos(i).strTIF, _
      LinkToFile:=False, _
      SaveWithDocument:=True, _
        Range:=.Bookmarks("Logo").Range
      With .Bookmarks("Logo").Range
        x = .InlineShapes.Count
        Resize_Logo .InlineShapes(x), .InlineShapes(x).Width, LOGO_WIDTH
      End With
    End With
'...
End Sub

'***********************************************************************************************
Public Sub Resize_Logo(ByRef isPic As InlineShape, lngDim As Single, ByVal lngTarget As Single)
  Dim dblFactor As Double

  lngTarget = InchesToPoints(lngTarget)
  If lngDim <> lngTarget Then
    dblFactor = ((lngTarget - lngDim) / lngDim) + 1
    isPic.Height = dblFactor * isPic.Height
    isPic.Width = dblFactor * isPic.Width
  End If
End Sub

When I manually insert a .tif as an inline image (Insert>Picture>From File...) in Word 2003 the image isn't dithered. What can I do, other than manually inserting the image and/or resizing the image outside of Word, to fix this
NS


Answer this question

Programmatically inserted inline image is dithered in Word 2003

  • Wellnow

    Please send a copy of this image to budsup@microsoft.com so that the engineer who is researching this can test on the original image.

    thanks!
    -brenda (ISV Buddy Team)

  • Boris Mueller

    Since we didn't hear back regarding the original image file, I'll go ahead and post some generic information that might be helpful to you. If you'd still like to send the image file to us for further investigation please do.

    Working with Word 2003 Images Programmatically< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

    Microsoft Office Word 2003 is not a tool for text only. It enables you to use programmatically editable images such as shapes, charts, and so on. You can save bitmap (BMP) versions of them to your hard drive, create captions, and do many other things to them with Word's object model.

    Link: http://msdn.microsoft.com/library/default.asp url=/library/en-us/odc_wd2003_ta/html/OfficeWordProgrammingWithShapes.asp


    thanks,
    -brenda (ISV Buddy Team)

     



  • Programmatically inserted inline image is dithered in Word 2003