Hi,
I imported a Word doc into Flare and everything seemed to go smoothly but with the normal issues I've seen in the past (e.g., I got a new unneeded style sheet). However, when I open the topic file I immediately noticed only a small fraction of the images were imported. (47 of 498 images were imported.) After a little experimenting I found a pattern: of the 47 images that were imported they were all inline images while all of the floating images were ignored. I've been importing Word docs into Flare for years but I've never seen this before. (I'm running Flare 2018 r2.) As an alternative I saved the Word file as a web page and then imported the web page into Flare. The good news is all the figures were imported. The bad news is that the formatting was all messed up.
Has anyone else seen this before? If so, do you have a workaround?
Thanks,
Brian
Only a fraction of images are imported from Word doc
-
- Propeller Head
- Posts: 51
- Joined: Thu Dec 27, 2018 10:35 am
- Location: Goleta (Santa Barbara County), CA
- Contact:
Only a fraction of images are imported from Word doc
Flare + Analyzer 2022, Central, Capture 7.0, Mimic 8.1
Re: Only a fraction of images are imported from Word doc
I wrote a Word macro to convert floated shapes to inline shapes before I import, which might help.
Try on a copy of your document first.
If you aren't familiar with Macros, this should work to set it up:
Try on a copy of your document first.
Code: Select all
Sub SetShapesToInline()
Dim simg As Shape
For Each simg In ActiveDocument.Shapes
simg.WrapFormat.Type = wdWrapInline
Next simg
End Sub
- In Word, select View > Macros > View Macros.
- In the Macro name field type "SetShapesToInline".
- Click Create. The Developer environment opens at a new blank macro. It should look like:
Code: Select all
Sub SetShapesToInline() ' ' SetShape Macro ' ' End Sub
- Copy and paste the following just above End Sub
Code: Select all
Dim simg As Shape For Each simg In ActiveDocument.Shapes simg.WrapFormat.Type = wdWrapInline Next simg
- Save
- Switch to your document
- Select View > Macros > View Macros
- Select the macro from the list and click Run. All shapes that can be are switched to inline shapes.
-
- Propeller Head
- Posts: 51
- Joined: Thu Dec 27, 2018 10:35 am
- Location: Goleta (Santa Barbara County), CA
- Contact:
Re: Only a fraction of images are imported from Word doc
Psider,
Thank you for your quick response! Unfortunately, I haven't used Word macros in over 20 years and I seemed to have crashed the macro editor. No matter what I do now I get a "Compile error" Invalid outside procedure" error message. Now I can't even create a new macro. Not sure what to do now.
Brian
Thank you for your quick response! Unfortunately, I haven't used Word macros in over 20 years and I seemed to have crashed the macro editor. No matter what I do now I get a "Compile error" Invalid outside procedure" error message. Now I can't even create a new macro. Not sure what to do now.
Brian
You do not have the required permissions to view the files attached to this post.
Flare + Analyzer 2022, Central, Capture 7.0, Mimic 8.1
-
- Propeller Head
- Posts: 51
- Joined: Thu Dec 27, 2018 10:35 am
- Location: Goleta (Santa Barbara County), CA
- Contact:
Re: Only a fraction of images are imported from Word doc
Ah, found the problem. I deleted the following line by mistake:
I just ran it and it worked. Thanks for your help.
By the way, the reason I haven't used macros since the '90s is thanks to the Concept Macro Virus. At the place I was working at in '95 it ruined virtually every Word doc.
Brian
Code: Select all
Sub SetShapesToInline()
By the way, the reason I haven't used macros since the '90s is thanks to the Concept Macro Virus. At the place I was working at in '95 it ruined virtually every Word doc.
Brian
Flare + Analyzer 2022, Central, Capture 7.0, Mimic 8.1
Re: Only a fraction of images are imported from Word doc
Glad you got it working. And yeah, the virus thing is a problem. Also partly why I only posted a snippet of my full macro - it should be possible for most people to get the gist of what it's doing and so not worry about evilness.