RE: Suggestions for new tool option

Subject: RE: Suggestions for new tool option
From: "Steve Hudson" <steve -at- wright -dot- com -dot- au>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Tue, 5 Jun 2001 17:06:40 +1000

REPOST - but with an updated macro zat werks much better than de last vun

I'll re-iterate what I know, and I know that therein that smallish scope
lies an answer to "Why is my word document so BIIIIG after whackin in a
graphic". Hopefully some more erudite user can add some fine print :-)

1) Word doesnt understand any graphic except .wmf and .bmp.

2) Word will import SOME OTHER graphic formats. When it does so, it must
have TWO copies of the graphic. One as the original .whatever file. One as
an internal-use only bitmap that word can use to display a representation of
the inserted graphic.

3) When you crop or otherwise adjust a picture using word's built-in
controls, it needs at least two copies (both of which CAN be satisfied by
point 2 above) - an original and a display copy.

4) BMP is the most inefficient way of storing a picture.

5) Linked pictures should not be stored with the document, but this rule is
subbordinate to 3).

6) Embedding pictures can cause total nightmares extracting the picture for
export to a decent package to change it.

7) Linking pictures enables a source identifier with the picture object -
useful for control and developmental labelling purposes.

My personal solution has been to:

Always use linked pictures, of type .jpg (full-color photo-like stuff,
usually 79% compression) and .gif (screenshots, 256 color palette, high
contrast theme) and perform NO graphic adjustments to the picture inside of
Word - excepting scale.
Always use a relative path link, and either store the gfx in the same root
as their host document, or in a subdirectory directly underneath same.
Use a controlled naming prefix schema to identify picture catagories.
Run a simple embedding macro (available upon application in writing to me
anywhere) to embed all linked pictures when sending the document out, or zip
the dir and send the lot to the printers for bigger works.
I also have a simple macro to list the filenames of the linked pictures:

Sub ListPix()
' code returns INCLUDEPICTURE "..\\..\\Sample.jpg" \* MERGEFORMAT \d
Dim k As Long, l As Long
Dim MyFieldCode() As String
Dim Count As Long
Dim Quotes As String

Quotes = Chr$(34)
Count = 0
With ActiveDocument
For k = 1 To .Fields.Count
With .Fields(k)
If .Type = wdFieldIncludePicture Then
Count = Count + 1
ReDim Preserve MyFieldCode(Count)
MyFieldCode(Count) = .Code.Text
End If
End With
Next
End With

If Count = 0 Then
MsgBox "No pictures found!"
Else

Application.Documents.Add Template:="Wright.dot"

For k = 1 To Count
MyFieldCode(k) = Right$(MyFieldCode(k), Len(MyFieldCode(k)) -
17) 'strip includepicture "
While Right$(MyFieldCode(k), 1) = " "
MyFieldCode(k) = Left$(MyFieldCode(k), Len(MyFieldCode(k)) -
1)
Wend
If Right$(MyFieldCode(k), 2) = "\d" Then MyFieldCode(k) =
Left$(MyFieldCode(k), Len(MyFieldCode(k)) - 3)
If Right$(MyFieldCode(k), 5) = "ORMAT" Then MyFieldCode(k) =
Left$(MyFieldCode(k), Len(MyFieldCode(k)) - 15)
If Right$(MyFieldCode(k), 1) = Quotes Then MyFieldCode(k) =
Left$(MyFieldCode(k), Len(MyFieldCode(k)) - 1)
Selection.InsertAfter MyFieldCode(k)
Selection.Collapse direction:=wdCollapseEnd
Selection.InsertParagraphAfter
Selection.Collapse direction:=wdCollapseEnd
Next k
If Count > 1 Then
ActiveDocument.Select
Selection.Sort
End If
End If
End Sub


Steve Hudson
Lead Technical Writer
Wright Technologies (Aus)
steve -at- www -dot- wright -dot- com -dot- au
(612) 9518-1822
The best way to predict the future... is to create it!




^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

*** Deva(tm) Tools for Dreamweaver and Deva(tm) Search ***
Build Contents, Indexes, and Search for Web Sites and Help Systems
Available now at http://www.devahelp.com or info -at- devahelp -dot- com

Sponsored by Cub Lea, specialist in low-cost outsourced development
and documentation. Overload and time-sensitive jobs at exceptional
rates. Unique free gifts for all visitors to http://www.cublea.com

---
You are currently subscribed to techwr-l as: archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit
http://www.raycomm.com/techwhirl/ for more resources and info.


Follow-Ups:

References:
RE: Suggestions for new tool option: From: Brierley, Sean

Previous by Author: RE: Nielsen's Rating (of PDF)
Next by Author: RE: Suggestions for new tool option
Previous by Thread: RE: Suggestions for new tool option
Next by Thread: Re: Suggestions for new tool option


What this post helpful? Share it with friends and colleagues:


Sponsored Ads