Jump to content

Recommended Posts

Posted

Hi All,

 

I am wanting to know how to go about suppressing a graphic frame if that frame is empty. Some of the records in the data have a logo that feeds into the frame and some do not. I have a text box with a return address that I am using text wrapping to wrap around the graphic, but when there is no graphic for a particular record, I want the text box to slide over to where the logo would be. It seems to me that if I would be able to suppress the Graphic frame when there is no logo to feed in, the text box would slide over into position.

Make sense? Any suggestions?

 

Thanks!

Dave

Posted

You can suppress a frame like this, in OnRecordStart:

if ([i]some_condition[/i])
   FindGraphicFrame("YourFrameName").suppress = true;

However, that doesn't prevent text from wrapping around the frame. So you probably want to do this instead:

if ([i]some_condition[/i])
   FindGraphicFrame("YourFrameName").textWrap = false;

Or, if the frame has a border, you might need to do both:

if ([i]some_condition[/i])
{
   FindGraphicFrame("YourFrameName").suppress = true;
   FindGraphicFrame("YourFrameName").textWrap = false;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...