|
-
Apr 11th, 2003, 10:26 AM
#1
Thread Starter
Addicted Member
Crystal Report page break and page number
I'm using CR in VB.NET and I couldn't figure out how to put a page break on the report design. I wasn't sure if there is such thing as page break in CR. Another thing is, I want to be able to determine where the page ends and the next page begins in design time.
If anyone knows, please help.
Many thanks in advance.
Chong
-
Apr 11th, 2003, 11:04 AM
#2
Frenzied Member
No, you dont have such a thing called Page Break as in Access reports. Any section has a feature called "New Page After' or "New Page Before'. There you can set the desired page break.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Apr 11th, 2003, 01:49 PM
#3
Thread Starter
Addicted Member
Crystal Report page break and page number
Thanks for helping me out. Yes, I saw that when I right click and go to Format Section. The problem I have is, how do I set a page break if, let's say, I want to put a page break after a database field name answer1? I saw the icon with the x+2 and a pencil underneath, but I wasn't sure how to enter the formula in the Format Formula Editor.
Chong
-
Apr 11th, 2003, 02:13 PM
#4
Frenzied Member
You want to have a page break after a special field? or based on the field value? In any case you want to have it in which section?
If you want to have a page break after a special field. lets say "ansewr1" which is located in Details section you can add another Detail section and put the fields that come after 'answer1' in that section. And set 'New page after' in the first detail section.
If you want to put a page break after a special value of a filed then you make a formula , either in Basic or CR syntax with a boolean result: for example
{answer1}="bal bal bal...";
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Apr 11th, 2003, 03:08 PM
#5
Thread Starter
Addicted Member
Crystal Report page break and page number
It works by adding a new section after field answer1. Two more questions I have is, how would I do if I want to put a page break after the field answer1 without adding additional section? What sort of formula would I need to write? And I want to put a page break base on field value, what formula do I need?
Again, thank you very much! You've saved my day. I have been looking for the page break for the whole day today.
Chong
-
Apr 11th, 2003, 03:36 PM
#6
Frenzied Member
For your first question:
I am afraid that wont be easy to do.
And for the formula:
It may be something like this:
{ansewer1}="something";
' or other condition to insert new page
depending on the situation you may need to put
whileprintingrecords;
or
whilereadingrecords;
before that to work.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Apr 14th, 2003, 08:18 AM
#7
Thread Starter
Addicted Member
Thanks! I'll keep that in mind if I ever need it.
Chong
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|