Can I generate Word files with images included in the file?

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
oldhousegeek84
Propeller Head
Posts: 44
Joined: Fri Mar 09, 2007 9:38 am

Can I generate Word files with images included in the file?

Post by oldhousegeek84 »

I often generate Word documents for reviewers so they can use Word's commenting features. But when Flare generated Word files, the images are referenced so reviewers can't see the images.

Is there some way to tell Flare to include images when it generated Word output?
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Post by LTinker68 »

The easiest way is to just open the file in Word and resave it as a .doc file. When I've done that it's always embedded the images in the file. I think there's also a command in Word to change references to embedded instances, but I don't remember it off the top of my head.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
wclass
Propellus Maximus
Posts: 1238
Joined: Mon Feb 27, 2006 5:56 am
Location: Melbourne, Australia

Re: Can I generate Word files with images included ...

Post by wclass »

The Word command:

Select the whole document (Ctrl-A)
Select Edit > Links ...
Choose Save pictures, and also Break links.
Margaret Hassall - Melbourne
daphna
Propeller Head
Posts: 36
Joined: Fri Feb 03, 2006 1:00 pm

Images in Word output

Post by daphna »

Excellent advice! I was frustrated that I would have to deliver the file of images along with the Word doc until I read your helpful post. Thank you.
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re:

Post by KevinDAmery »

LTinker68 wrote:The easiest way is to just open the file in Word and resave it as a .doc file. When I've done that it's always embedded the images in the file. I think there's also a command in Word to change references to embedded instances, but I don't remember it off the top of my head.
Also, you can automatically have it saved as a .Doc instead of .xml if you specify the extension in the output file name. For some reason Flare defaults to XML otherwise.
Until next time....
Image
Kevin Amery
Certified MAD for Flare
Richard Ferrell
Propellus Maximus
Posts: 840
Joined: Mon May 01, 2006 10:11 am
Location: Inside California

Post by Richard Ferrell »

I wasnt' able to get the Images to be inclulded if I have Flare save it as a Word Doc, But Wclass suggestion did work, and I will create a Knowledge base article on it,
Richard Ferrell

Certified Madcap Trainer
Image
SteveS
Senior Propellus Maximus
Posts: 2090
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re:

Post by SteveS »

Richard Ferrell wrote:I wasnt' able to get the Images to be inclulded if I have Flare save it as a Word Doc, But Wclass suggestion did work, and I will create a Knowledge base article on it,
What about an auto-open macro that Flare calls natively?
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re:

Post by KevinDAmery »

SteveS wrote:
Richard Ferrell wrote:I wasnt' able to get the Images to be inclulded if I have Flare save it as a Word Doc, But Wclass suggestion did work, and I will create a Knowledge base article on it,
What about an auto-open macro that Flare calls natively?
Well, if they're going to code that into Flare, why don't they just code in the ability to specify if you want the images internal or external in the actual export and have done with it? :roll:
Until next time....
Image
Kevin Amery
Certified MAD for Flare
Richard Ferrell
Propellus Maximus
Posts: 840
Joined: Mon May 01, 2006 10:11 am
Location: Inside California

Post by Richard Ferrell »

ITs been added as a feature request,

Here is the KB on Embeding the images in a topic, Thanks Wclass, Gave you credit!

http://kb.madcapsoftware.com/default_csh.htm#OUTP1010F
Richard Ferrell

Certified Madcap Trainer
Image
Techno
Sr. Propeller Head
Posts: 193
Joined: Fri Dec 09, 2005 9:23 pm
Location: NORTHAMPTON, England, UK
Contact:

Post by Techno »

Richard, Have you seen the \"Distributing Printed Documentation\" thread - more or less same question as here, but.......

How in blazes do you embed the graphics in Word 2007, such that you can Save As a Word 2003 file??? Where is the perrishing EDIT menu in :evil: 07?

I've GOT to develop in Vista, and I'm stuck with Word 2007. But I must also create Word 2003 files for distribution.
George Bell
Techno-Vision Systems Ltd., U.K.
Richard Ferrell
Propellus Maximus
Posts: 840
Joined: Mon May 01, 2006 10:11 am
Location: Inside California

Office 2007

Post by Richard Ferrell »

For Word 2007
  • Click on the Office Button in the Upper Left
    Select Prepare
    Selct Edit Links to Documents and then follow the steps from the Technote
Richard Ferrell

Certified Madcap Trainer
Image
daphna
Propeller Head
Posts: 36
Joined: Fri Feb 03, 2006 1:00 pm

Word Docs

Post by daphna »

OK, here's another complication. The target document is for a client, who is paying good consulting money. However, they want the output in Word. They only have Word 2000. So we are output to Word, embedding images, etc. Works fine when we open on different machines. We then save in Word 2000 format and send to the client. When the client opens the file we send, some of the images appear, but many are missing? Any other advice on what to do?
SteveS
Senior Propellus Maximus
Posts: 2090
Joined: Tue Mar 07, 2006 5:06 pm
Location: Adelaide, far side of the world ( 34°56'0.78\"S 138°46'44.28\"E).
Contact:

Re: Can I generate Word files with images included ...

Post by SteveS »

Did you try the following:
wclass wrote:The Word command:

Select the whole document (Ctrl-A)
Select Edit > Links ...
Choose Save pictures, and also Break links.
:?:

Word 2000? Sheesh :wink:
Image
Steve
Life's too short for bad coffee, bad chocolate, and bad red wine.
daphna
Propeller Head
Posts: 36
Joined: Fri Feb 03, 2006 1:00 pm

Word output

Post by daphna »

yes, that whole process works as indicated. The output is fine on machines with Word 2003 or higher. However, once we have an output with the embeeded images, we are attempting to \"Save As\" and save down to Word 2K. When we send to the client, some (but not all) of the images are not visible.
doc_guy
Propellus Maximus
Posts: 1979
Joined: Tue Nov 28, 2006 11:18 am
Location: Crossroads of the West
Contact:

Post by doc_guy »

(Only Slightly Tongue-in-cheek)

If the money is good enough, maybe you should include a free copy of Word 2003. :)

And in future client negotiations, clearly state somewhere that Word 2003 or higher is required if they want to receive editable copies of the output.
Paul Pehrson
My Blog

Image
daphna
Propeller Head
Posts: 36
Joined: Fri Feb 03, 2006 1:00 pm

Word

Post by daphna »

This client is a big conglomerate...they are not going to let this user install a rogue copy of Word 2K.

This whole project is so vague that the requirements keep popping up left and right, but good idea for similar future projects.
Boone
Propeller Head
Posts: 44
Joined: Thu Jan 31, 2008 10:24 am

Re: Can I generate Word files with images included in the file?

Post by Boone »

I'm using Word 2003 and I have ~170 linked graphics in my 128 page Word document. (This is a fraction of what my final document will have.) I used Edit:Links to save the pictures in my document and break the links. It seemed to work like a charm until I realized that only a few of the graphics actually had been saved. The rest were missing from the document. I tried repeatedly (restoring my original copy, then saving/breaking links) but could never get all of the graphics to be saved in the document.

I then tried using a two-step process. First I used Edit:Links and only saved the pictures but did not break the links and saved the document. Then I again used Edit:Links and saved the pictures and broke the links. This seems to work - all my picture are there. Has anyone else had this problem?

I strongly agree that we need a way to tell FLARE to embed the pictures in the output file. This is causing me a real headache!
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: Can I generate Word files with images included in the file?

Post by KevinDAmery »

Boone wrote:I'm using Word 2003 and I have ~170 linked graphics in my 128 page Word document. (This is a fraction of what my final document will have.) I used Edit:Links to save the pictures in my document and break the links. It seemed to work like a charm until I realized that only a few of the graphics actually had been saved. The rest were missing from the document. I tried repeatedly (restoring my original copy, then saving/breaking links) but could never get all of the graphics to be saved in the document.
Hit Ctrl+A in the body of the document to select everything before going to the Links panel. (Or you could manually select all of the images in the Links panel itself, but hitting Ctrl+A before opening it is faster...) This will ensure that Word applies your links settings to every image instead of just a few.
Until next time....
Image
Kevin Amery
Certified MAD for Flare
Boone
Propeller Head
Posts: 44
Joined: Thu Jan 31, 2008 10:24 am

Re: Can I generate Word files with images included in the file?

Post by Boone »

Oops, I think I lost my previous replay. I didn't mention it in my post, but I was selecting the entire document (via CTRL-A) and selecting all the graphics in the Link dialog. That wasn't the problem.
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: Can I generate Word files with images included in the file?

Post by KevinDAmery »

What I've been doing here is the Ctrl+A process and the enabling Save in Document without worrying about the Break Links option. It's been working for me here. It's possible that the Break Links is affecting the output in some way (logically it shouldn't, but hey, this is Word we're talking about....)
Until next time....
Image
Kevin Amery
Certified MAD for Flare
wclass
Propellus Maximus
Posts: 1238
Joined: Mon Feb 27, 2006 5:56 am
Location: Melbourne, Australia

Re: Can I generate Word files with images included in the file?

Post by wclass »

I think Word has a timing problem - if you scroll through a generated document with several pictures, the picture does not always display immediately.

Slow answer, if you do a print preview and look at every page, then break the links, it will work - not practical for big documents.

Alternative - here is a macro I use that works for me. Copy it to Normal or your favourite template document, and add it to a toolbar. It operates on the current active document, so run it when you are viewing your newly generated Flare output.

Code: Select all

Public Sub ConvertLinksToPictures()
'
' This procedure loops through the active document looking for fields of type "Include Picture".
' When it finds one, it determines the file name being linked to, selects the field, then
' replaces the selection with an embedded version of the picture.
'
' (c) M Hassall March 2007
' -------------------------

Dim oFld As Field               ' object variable for each field
Dim oIShp As InlineShape        ' object variable for each shape - to extract the file name
Dim sPath As String             ' Store the path of the current document
Dim sFname As String            ' Work out the full path name of the images

sPath = ActiveDocument.Path

For Each oFld In ActiveDocument.Fields
    
    If oFld.Type = wdFieldIncludePicture Then
        ' get that picture name (from the shape) - need the full path name
        Set oIShp = oFld.InlineShape
        sFname = sPath & "\" & oIShp.LinkFormat.SourceFullName
        
        ' select the field and replace the selection by embedding the picture
        oFld.Select
        Selection.InlineShapes.AddPicture _
            FileName:=sFname, LinkToFile:=False, SaveWithDocument:=True
        Selection.Collapse Direction:=wdCollapseEnd
        Set oIShp = Nothing
        
    End If
Next oFld

End Sub

Margaret Hassall - Melbourne
daphna
Propeller Head
Posts: 36
Joined: Fri Feb 03, 2006 1:00 pm

Re: Can I generate Word files with images included in the file?

Post by daphna »

Does anybody know how to embed the images and break the links in Word 2007? I just got it and am still getting used to the ribbons...
lacastle
Propellus Maximus
Posts: 1028
Joined: Thu Apr 12, 2007 7:28 am
Location: Wilmington, DE
Contact:

Re: Can I generate Word files with images included in the file?

Post by lacastle »

bobmoon
Sr. Propeller Head
Posts: 259
Joined: Thu Mar 27, 2008 10:22 am
Location: Atlanta

Re: Can I generate Word files with images included in the file?

Post by bobmoon »

The link provided in this thread to the KB did not work for me. Here's a link without spaces.

Embedding Images in Word output

Bob
daphna
Propeller Head
Posts: 36
Joined: Fri Feb 03, 2006 1:00 pm

Re: Can I generate Word files with images included in the file?

Post by daphna »

Anybody know how to do this in Office 2010?
Post Reply