Joined: 23 Oct 2007
Location: United Kingdom
Online Status: Offline
Posts: 1
Topic: conditional printing Posted: 23 Oct 2007 at 3:21am
Hi,
Not sure if the subject is correct - so apologies if not.
Ive got to popluate remittance advices, which are combined with cheques in one pre-printed form.
What I want to do is...... if the detail lines exceed the space available ouput a load of XXXXs on the cheque element of the pre-printed stationery before continuing onto the next page.
Any advice is gratrefully received.
PS Im new to Crystal - so please be gentle with me!!!!!
Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Posted: 23 Oct 2007 at 10:13am
I've heard of people doing something similar, but it's very tricky. The problem has to do with fonts and variable character sizes. If you use a fixed size font then you can test the length of the string to see how many characters will force you to print the XXXX and then use the Len() function in a formula to determine when to print the XXX's. If you are using a variable sized font then you just have to do a range and assume it won't be perfect.
To print the XXXXX's, I would create a second Details section with the XXXXX in it and then put that Len() formula in the Suppress property. That way it only prints if it meets the length criteria.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum