problemet er at punkterne blaAA og blaBB hører logisk sammen. Enkelte gange bliver de delt af en side, hvilket ikke er acceptabelt. blaAA og blaBB SKAL være på samme side. i ovenstående eksempel lykkes det en gang, men fejler ved sideskiftet.
jeg forestiller mig at lave noget ala det her:
Hvis dette felt indeholder teksten blaAA og det næste felt der bliver skrevet skal indeholde blaBB så gør detaljefeltet på denneside mindre således at blaAA bliver kastet med over på næste side.
Jeg kan bare ikke finde ud af hvordan jeg checker på den næste post i query'en
I think you need to play around with the reports grouping. There is also a property "Keep Together" which is used to keep related information (records) on the same page
no, not really... I have been trying to group the reords in two's, but I can't seem to cut it.
Do you know how to group the records from the table so that there will always be an even number of them on a page. that would also solve the problem above
Are you saying that two records (and only two records) are always related?
There must be something (some field) in the table which you can group on, for example an ID field.
But if you have no way of tell telling then you will need to do it in code. But do all records fill the same number of lines in the report? If they dont then I thin kyou have a problem!
nah. that is the big problem. we are talking an *extremely poor* database. its really utter crap. there is no keys to use for sorting..
I have no problem writing it in code then I could count the records written, but ... I can't seem to find a function I can trigger ends the detail field for the current page. I found a command that forces pageshift but then it doesn't write the footer.
i know... i should rewrite the whole thing, but ... it works and I can't spend the time rewriting it from scratch. ... a year from now it will be portet to java and crystal reports, but for now i am stuck with it.
yes, i have looked at the format event - but I haven't been able to locate a "stop processing this field and go on to the next" function.
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.