Set image wrapping to "behind text" in header

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
jjw
Sr. Propeller Head
Posts: 133
Joined: Thu May 08, 2014 4:18 pm
Location: Melbourne

Set image wrapping to "behind text" in header

Post by jjw »

Newbie here....

I have a page layout for Word output with a large image in the header. That works fine, but I want the wrapping settings for the image to be set to "behind text" so my body text overlaps the header image. I'm sure I could do it with vba, but is there some obvious way that I'm missing to control those settings in Flare? I tried meddling with the z-index in my print media styles, but it didn't help.

J
Lydia
Sr. Propeller Head
Posts: 373
Joined: Tue Apr 23, 2013 3:19 am
Location: The Netherlands, Amsterdam Area

Re: Set image wrapping to "behind text" in header

Post by Lydia »

If I get this right, you have (at least) two frames: a header and a body frame? If you want to define which frame is a the top/bottom, you may look into floating or sinking frames.
In the Page Layout Editor, in the local toolbar click Layout > Depth and then choose the sink/float option.
Using Flare 10.2 and Flare 11 on Win 7
OomikeoO
Propeller Head
Posts: 12
Joined: Wed Feb 12, 2014 4:04 am

Re: Set image wrapping to "behind text" in header

Post by OomikeoO »

How about attaching the image to the BODY as a background image using CSS?

Code: Select all

body{
background: #fff url("logo.png") no-repeat 10px 10px;
}
jjw
Sr. Propeller Head
Posts: 133
Joined: Thu May 08, 2014 4:18 pm
Location: Melbourne

Re: Set image wrapping to "behind text" in header

Post by jjw »

Thanks for the help - I haven't found anything that works yet. What I've tried is:

- Putting a background image on the page using my print stylesheet - I tried applying it to the body and to a div inside the body but in neither case did the image appear.
- Setting the body frame layer to float above the header frame. That gave me my image, but the wrapping was still wrong.
- Removing the header and setting the image as background to the body frame - again, the image just didn't render in Word.

Like I say, I can use VBA to select the image and change the wrapping, but I was hoping there would be a solution within Flare.

J
Lydia
Sr. Propeller Head
Posts: 373
Joined: Tue Apr 23, 2013 3:19 am
Location: The Netherlands, Amsterdam Area

Re: Set image wrapping to "behind text" in header

Post by Lydia »

I am not sure as to why the wrapping is still wrong. I don't generate Word output in my daily work. There are some limitations if it comes to images and object positioning in Word. But I don't know whether that is what you see.
If you say that the wrapping is still wrong - in which way is it wrong?
Using Flare 10.2 and Flare 11 on Win 7
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Set image wrapping to "behind text" in header

Post by LTinker68 »

jjw wrote:- Putting a background image on the page using my print stylesheet - I tried applying it to the body and to a div inside the body but in neither case did the image appear.
- Removing the header and setting the image as background to the body frame - again, the image just didn't render in Word.
Word is extremely picky about some CSS stuff, specifically those related to images and to DIVs. It doesn't recognize DIVs, and it doesn't recognize images called as bullet images in lists, and so on. So trying to insert the image using CSS probably won't work for Word output, and that might also be why inserting it as a background image didn't work, since that inserts an inline style definition.
jjw wrote:- Setting the body frame layer to float above the header frame. That gave me my image, but the wrapping was still wrong.
How was the wrapping wrong? You didn't see the text?
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
jjw
Sr. Propeller Head
Posts: 133
Joined: Thu May 08, 2014 4:18 pm
Location: Melbourne

Re: Set image wrapping to "behind text" in header

Post by jjw »

When I say the wrapping is wrong, I mean that I'm trying to set the image "wrapping style" (the "WrapFormat" property of the shape) to be behind the text. But I don't seem to be able to make Flare output the image to Word that way - the image is always inline with the text (so the text is pushed down under the image instead of sitting on top of it).

I've admitted defeat and written a macro now.

J
Post Reply