Sometimes in the image inclusion frames are used ("|framed|none") even though there are no frames on the Word document.
Logged In: YES
The source code is like this:
Selection.InsertAfter vbCr & "[[Image:" & ImageInfo.Name & IIf(ImageInfo.hasFrame, "|framed|none", "") & "]]" & vbCr
Apparently, ImageInfo.hasFrame is returning true even when the image does not have a visible frame.
The previous commentary is not exact. Actually, the first 3 images of the demo document are generated by this section:
Case 2 'resize only if bigger then ImageMaxWidth
If ImageInfo.Width > GetReg("ImageMaxWidth") Then
MyIS.Range.InsertAfter "[[Image:" & ImageInfo.Name & "|thumb|none|" & GetReg("ImageMaxWidth") & "px]]" & vbCr
MyIS.Range.InsertAfter "[[Image:" & ImageInfo.Name & "|framed|none" & "]]" & vbCr
The fourth image is generated by this one:
Selection.InsertAfter vbCr & "[[Image:" & ImageInfo.Name & IIf(ImageInfo.hasFrame, "|framed|none|teste2", "") & "]]" & vbCr
From the source code we can see that ImageInfo.hasFrame is almost always true, only being changed to False on a few cases (msoTextBox, msoAutoShape). It seems the code wants to use frames whenever this is possible. Probably this should be an option.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.