numbering page in crystal report - c#

am using crystal report in C# asp.net ..
i need help on this :
and am trying to make my report start from number 5 NOT 1
i tried to write PageNumber=5; like this :
in footer group -> section expert -> reset page number after -> formal Editor -> PageNumber=5;
its reset after page 5 .. i want it from beginning start from a number i give ..
also i try it on new page before and i add it there it not work
what should i do ?
thanks

Don't go to reset page number instead create a formula and write below code and place place in page footer.
Create formula #Page Number
pagenumber+4
Now place above formula in page footer

Related

How to remove extra page details in crystal report

I'm new in crystal report, i want to make a limit of number record that display in one page. I'm using this formula "if Remainder (RecordNumber, 11) = 0 then true else false"
It's works, I have 20 records it divided into two page. But at the end it shows an extra page header. Anyone know how to remove the extra page header? Please help, Thank You
Extra page header after add limit details formula

How to Supress Blank Space In Crystal report

I have Crystal Repot Like this :
In this I dynamically Supress Field as I I found Null value for that field,
But In Report It shows Blank Space Like here I am Hiding, tag0 ,tag1, tag11, value0 ,value1 ,value11 etc
So Report Shows Like this
I want to Remove this blank Space between Field, above and Below I try
Section Expert => And Tick On Suppress Blank Section , but its not Working
As per Siva Suggest me i Can not Put All the tag in Different Section Because there are in Group Section not in Details
Here Field TAG 0 to 11 and Value 0 to 11 are Variables , which may be hidden or Visible Depend on User Selection , where other Field are static
Try the following step
= > Open your section expert (right click on some white space, you should see it come up).
= > Go to the options for the group footer and turn on reset page numbers after. You should see the page numbers reset at the beginning of each report.
= > Also in the section expert, go to the options for the page header and click on the blue button next to the Suppress (No Drill-Down) option.
= > In the Formula Editor, enter PageNumber=1
I would suggest you to place one tag in one details section like
tag1 in detaila
tag2 in detailb and so on
Then supress the section insetad of supressing the individual fields then you won't get this blank space.
Right Click on the section >> Section Expert >> Check Suppress Blank Section

How to change textbox text dynamically in Crystal Reports using a formula

I just trying to change textbox text dynamically in Crystal Reports using a formula but I did not find where should I put the formula?
Shalini Khare
On crystal report , you can find FormulaFeild section. Right click that and add new formula and apply your logic
EDIT
Instead of textbox write a formula and place the formula in the textbox place.
Step 1-Insert textbox
Step 2- On crystal report ,Open Formula field section. Right click that and add new formula.
Step 3- Give name of Your formula and click OK
Step 4- Write down formula to change textbox text dynamically Like
If{Table.TotalMarks}>400 then "Pass"
Else "Fail"
Step 5- Save and Close
Step 6- Drag this formula from Formula Field and drop it into textbox
Step 7- Now execute your program
Step 1- Insert two Text box (At same place)
Step 2- Write Pass in first textbox and fail to another
Step 3- Right Click On First textbox
Step 4- Select format object
Step 5 Check On Suppress checkbox
Step 6 Open Suppress formula editor and put your formula like
if {Table.TotalMarks}> 400 then
true
else
false
Step 7 Save and close
Step 8-Apply same for second textbox (change formula)
Step 9 Now execute your program

data Overlapping in crystal reports

I have created around 9 crystal reports today and I noticed a problem in all the reports. Below is the link for the design of my report. I am not using any SP or View , just loading the gridview data by using a dataset.Now when I click on Print button in the front end..if the records are less than like 10 all of them are displayed in the first page but the summary in the second page is overlapped with the details as shown below link
http://www.facebook.com/photo.php?fbid=164068347074025&set=a.164065450407648.38272.100004125821604&type=3&theater
http://www.facebook.com/photo.php?fbid=164068363740690&set=a.164065450407648.38272.100004125821604&type=3&theater
Please help me with the below queries 1) Why the Page header and Details layout are displayed in the second page even when there are no records. 2) Why the Report footer is getting overlapped. Thank you.
1) Why the Page header and Details layout are displayed in the second page even when there are no records.
as per you choose page size , the content of your data will made this thing. second chance is in your design , you may be given more space horizontally between header, section , footer.
2) Why the Report footer is getting overlapped?
for this set properties(print at bottom) true in section expert(where section name written right click of any section )
http://arsalantamiz.blogspot.in/2008/09/how-to-handle-overlapping-of-large-text.html

How to display 20 records on every page of crystal report?

I am new to crystal reports and I need to print 20 rows of data per page.
I found this on the web but it is not working on my system.
if Remainder(Recordnumber,20)=0 then true else false
My system only prints a row per page.
To show 20 records per page do the following
Open the report in Design View
Right click on the Details section and select Section Expert
Make sure the Details section is selected in the Section Expert dialog box. Check the box that says “New Page After”
Click the formula editor button to the right of the checkbox.
Enter the following formula
if Remainder (RecordNumber, 20) = 0 then true else false
Click Save and Close and then click OK.
To make it show 10 records per page do the following
Open the report in Design View
Right click on the Details section and select Section Expert
Make sure the Details section is selected in the Section Expert dialog box. Check the box that says “New Page After”
Click the formula editor button to the right of the checkbox.
Enter the following formula
if Remainder (RecordNumber, 10) = 0 then true else false
Click Save and Close and then click OK.
If you run the report it should break after each 10 rows.
Could it be something pedantic as RecordNumber is Recordnumber in your code?
if Remainder (RecordNumber, 20) = 0 then true else false
If you are using Crystal reports 2008/2011 there is a new options in the details section properties in the section expert - 'New page after: X Visible Records':

Categories