Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Formatting for printing

 
   Database Forums (Home) -> FileMaker RSS
Next:  Transactional File System on Vista.  
Author Message
Tom Connelly

External


Since: Oct 13, 2008
Posts: 2



(Msg. 1) Posted: Mon Oct 13, 2008 8:26 am
Post subject: Formatting for printing
Archived from groups: comp>databases>filemaker (more info?)

Hello All,

Can anyone tell me how one can insert a space between
fields so they print correctly? I am referring to fields that
make up postal addresses.

For example, I have two fields, one for an international postcode
and one for the city.

<<international postcode>> <<city>>

This prints out fine while there is a number in the international
postcode field but when there is no number there the space
that was inserted between the fields remains and the city field
does not appear as fully justified to the left. I have set the layout
to slide to the left when printing, etc.

If I don't insert a space between the two fields they 'run together'
when printed, eg. 85000Serdang.

Is it possible to make a script or something which will create
a space between the two fields when there is data in them both
but remove all space so the city field fully justifies to the left
when there is no data in the international postcode field?

I apologies in advance if this is something quite simple but although
I have used Filemaker for some years (now with Filemaker 6) I
have almost no scripting experience with it.

Best wishes, Tom

 >> Stay informed about: Formatting for printing 
Back to top
Login to vote
Bill

External


Since: Jun 14, 2006
Posts: 64



(Msg. 2) Posted: Mon Oct 13, 2008 10:10 am
Post subject: Re: Formatting for printing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
"Tom Connelly" wrote:

> Hello All,
>
> Can anyone tell me how one can insert a space between
> fields so they print correctly? I am referring to fields that
> make up postal addresses.
>
> For example, I have two fields, one for an international postcode
> and one for the city.
>
> <<international postcode>> <<city>>
>
> This prints out fine while there is a number in the international
> postcode field but when there is no number there the space
> that was inserted between the fields remains and the city field
> does not appear as fully justified to the left. I have set the layout
> to slide to the left when printing, etc.
>
> If I don't insert a space between the two fields they 'run together'
> when printed, eg. 85000Serdang.
>
> Is it possible to make a script or something which will create
> a space between the two fields when there is data in them both
> but remove all space so the city field fully justifies to the left
> when there is no data in the international postcode field?
>
> I apologies in advance if this is something quite simple but although
> I have used Filemaker for some years (now with Filemaker 6) I
> have almost no scripting experience with it.
>
> Best wishes, Tom

One way to do this is to create a calculation field that concatenates
the various text fields with appropriate "If" and "Trim" functions, then
use that calculation field as part of the address label.

In your case the calculation would be as follows:

Trim( international postcode & " " & city)

This concatenates international postcode and city with a space between
them, and trims out the space if there is no international postcode.

--
Bill Collins
For email, change "fake" to "earthlink"

 >> Stay informed about: Formatting for printing 
Back to top
Login to vote
Martin Trautmann

External


Since: Jan 15, 2004
Posts: 171



(Msg. 3) Posted: Mon Oct 13, 2008 10:25 am
Post subject: Re: Formatting for printing [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Tom Connelly

External


Since: Oct 13, 2008
Posts: 2



(Msg. 4) Posted: Mon Oct 13, 2008 4:25 pm
Post subject: Re: Formatting for printing [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Many thanks for your kind suggestions!

I have made a calculation field and it works well.

Many thanks, Tom

"Tom Connelly" wrote in message

> Hello All,
>
> Can anyone tell me how one can insert a space between
> fields so they print correctly? I am referring to fields that
> make up postal addresses.
>
> For example, I have two fields, one for an international postcode
> and one for the city.
>
> <<international postcode>> <<city>>
>
> This prints out fine while there is a number in the international
> postcode field but when there is no number there the space
> that was inserted between the fields remains and the city field
> does not appear as fully justified to the left. I have set the layout
> to slide to the left when printing, etc.
>
> If I don't insert a space between the two fields they 'run together'
> when printed, eg. 85000Serdang.
>
> Is it possible to make a script or something which will create
> a space between the two fields when there is data in them both
> but remove all space so the city field fully justifies to the left
> when there is no data in the international postcode field?
>
> I apologies in advance if this is something quite simple but although
> I have used Filemaker for some years (now with Filemaker 6) I
> have almost no scripting experience with it.
>
> Best wishes, Tom
>
 >> Stay informed about: Formatting for printing 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Email merging and formatting - What is going on with FMP 7 in Windows? The formatting is gone when the mail is sent. Any way around it? thx

Email merging and formatting - What is going on with FMP 7 in Windows? The formatting is gone when the mail is sent. Any way around it? thx

Removing Text Formatting - In my data entry layout I do not wish to allow or retain user-applied formatting to data. Haven't figured out a viable way to enforce "plain text" format, that which I selected when defining the layout, 12 point Veranda. What has happened i...

Conditional text formatting? - Is there any way to format a field based on data in another field? In other words: If Field X is "No" Color of Field Y is to be Red. Thanks... Rick A. Pleasanton CA

Importing text with formatting - Hello, I'm stumped and I hope one of you FMP wizards can help me out. I need to import text into filemaker with formatting (bolds, italics and the like.) The source file is an RTF which has all the text I need. No matter what I try, the formatting gets....
   Database Forums (Home) -> FileMaker All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]