dhealy72 Posted March 21, 2014 Posted March 21, 2014 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 Quote
Dan Korn Posted March 21, 2014 Posted March 21, 2014 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; } Quote
dhealy72 Posted March 21, 2014 Author Posted March 21, 2014 Great! I'll give it a shot. Thanks! Quote
Recommended Posts
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.