I've made a custom report to print envelopes for selected vendors. I've edited the report so that the fields I've included look like this:
Name
Address
Address 2
City, State
Mail Code
I have 2 questions about this report:
1. When I come accross a vendor that has no Address2 I get a blank line where it would go. How do I get rid of it?
2.How do I get the State to follow directly after the City? Since not all city's are the same length, I've made the city field large and it often leaves a big space between the city and state fields.
Thanks for any help you can provide.
Make Report Skip Blank Fields
Moderators: Moderators, Tech Support
Re: Make Report Skip Blank Fields
You should be able to right-click on the data item to get a menu with the Properties selection. Select that, then click on the Print When button that is there. On the next dialogue you'll see a checkbox where you can select to Remove Line If Blank.megs wrote:I've made a custom report to print envelopes for selected vendors. I've edited the report so that the fields I've included look like this:
Name
Address
Address 2
City, State
Mail Code
I have 2 questions about this report:
1. When I come accross a vendor that has no Address2 I get a blank line where it would go. How do I get rid of it?
2.How do I get the State to follow directly after the City? Since not all city's are the same length, I've made the city field large and it often leaves a big space between the city and state fields.
Thanks for any help you can provide.
Hope that helps
Neil Zampella
Using PC+ since 1999.
Using PC+ since 1999.
-
- Tech Support
- Posts: 3099
- Joined: Thu May 13, 2004 9:59 am
- Location: PowerChurch Software
- Contact:
Re: Make Report Skip Blank Fields
Neil is correct, this will remove the empty field *if* there is nothing to the right of that field on the report layout.NeilZ wrote:You should be able to right-click on the data item to get a menu with the Properties selection. Select that, then click on the Print When button that is there. On the next dialogue you'll see a checkbox where you can select to Remove Line If Blank.
Name----------------------Vendor ID
Address1------------------Phone
Address2------------------Fax
City, State, ZIP-----------Contact person
If Address2 is blank, but Fax is not, you will still get a blank line for Address2.
Remove Line Box is Checked
I have checked the Remove Line Box in the Print When dialog, but I'm still getting a blank line. I have no other fields or items on the same horizontal line as the field (thanks for the tip though). Here are my settings under properties (I have applied the same settings to all of the fields in my form):


I still get the following output that looks like this:
John Doe
Box 123
Anytown Anystate
Mailcode
I still get the following output that looks like this:
John Doe
Box 123
Anytown Anystate
Mailcode
~Megs
One problem fixed...
I tried everything I could think of to skip the blank line with no luck, so I reset the form and started over and now it works! I must have had some crazy setting wrong somewhere!
I'd still like to know if it's possible to put my city and state fields next to each other without all that extra space in between. Any suggestions?
I'd still like to know if it's possible to put my city and state fields next to each other without all that extra space in between. Any suggestions?
~Megs
How to put two fields together.
In case anyone else had this problem, this is how I got my city and state fields to appear next to each other:
Right click the field and click properties.
Click the ... next to expression
In the expression box enter the following: ALLTRIM(city)+", "+state
Now my output looks like this:
city, state
Right click the field and click properties.
Click the ... next to expression
In the expression box enter the following: ALLTRIM(city)+", "+state
Now my output looks like this:
city, state
~Megs