crystal reports fill with lines - crystal-reports

I am making a report for a workorder for our workplace. The report prints the header of the order (order number, customer details etc.) Then it prints the text rows containing instructions what needs to be done. Mostly 1-10 lines.
After the instructions, I would like to have the page filled with empty lines where our mechanics can fill in their activities. I do not want the report to be more then one page. So, the more instructions, the less lines the report gets at the end.
I have searched several forums, but cannot find a good solution. Any help would be appreciated. I am using CR 2008.
Regards, Arno

You could try to add every "empty line" within a separate footer section, toggle section visibility depending on TotalRowCount (e.g. footer section A is only visible if TotalRowCount < 10, footer section B is visible if Rowcount < 9, etc.)

Related

How to insert a page break after n records in a group?

configuration (Please don't laught ) : the technologies in use are :
Crystal Report 6.0.1.135
VB6
Question : I have a report with a subreport. I am facing an issue on the subreport : when the subreport reaches the bottom of the page, the last 2 lines (records) are "hidden" by the main report Footer.
I precise that the number of hidden records depends on the footer hight.
A workaround is to delete/hide the footer, but this is not acceptable from business decision (page number must be printed).
I suspect this is a bug.
I am trying to work around it by inserting a page break after let's say 20 records of the subreport. I am struggling to do that, anyone as a clue on this ?
I solved the issue :
Rigth click on the Conception pane
On the Expert Section select the Group Header or Details you want to insert page break.
Tick the Page Break Before or Page Break After ( in french in the example, Nouvelle page avant / Nouvelle page après)
You get an area where you can enter a formula that will be used for the page break ( it must return a boolean , when true , the page break occurs)
There you can enter a formula :
This formula can refers to "magic" (in the sense of they exists in Crystal Report) keywords.
The formula below for example forces a page break every 50 Groups, but not for the last group (to avoid a blanck page).
Remainder(GroupNumber,50) = 0 And Not ONLASTRECORD
The same magic keywords exists :
RecordNumber
GroupNumber and RecordNumber are variables provided by Crystal Report obviously.
If anyone can point out a link with documentation for this old version of Crystal, I would be helpful

How to use a report as subreport (with additional info) multiple times in a maintainable way?

So basically I have a report. I need this report to be printed as a 'set of reports'. Except that for each time the report is printed, there has to be a specific numbering at the bottom of the page. Where it would look something like this:
Page 1: Report + Page footer text 'Number 1'
Page 2: Conditions
Page 3: Report + Page footer text 'Number 2'
Page 4: Conditions
Page 5: Report + Page footer text 'Number 3'
Page 6: Conditions
And so on, for an undetermined amount of times..
In order to achieve this, I have created a main report, which currently contains 20 subreports, in order to achieve 20 pages (but I really I'd like this to be dynamical, maybe to be able to set the number of copies or something). Where each subreport consists of the single mentioned report (through the subreport 'Choose an existing report' option), with a custom text at the bottom.
The problem with this is that I can't maintain this. Every time an adjustment needs to be made to the original report, I will need to access 10 subreports and make the very same change or reload the report into this subreport.
What alternative ways of achieving my goal can you suggest, because this feels really 'dirty'. Thank you for reading.
I run Version 14.0.2.364 of Crystal Reports 2011
To achieve this, you need to use group and detail section in main report. For making adjustments with paging, each section has his own
page before
page after
reset page
So to help you a bit, you need to have your data in one datasource, and group by
Report/Conditions. For each group you can have only 1 subreport which will have link for that specific subreport (e.g. where barcod of smth is 1234) and there show your subreport data. For page number i would advise you to use my approach (for grouping) and then for page number you display group number (and that solves you all formulas for calculating pages).
If you are not familiar with grouping in Crystal, you can group your records in report by some fields by following image below
To summarize, try to define by which fields your reports has 20 subreports (probably some keys from database) and then group by that fields, examine advances of section expert and paging and you should be done in few hours making your report readable and easy to maintain.
Hope it helps

How do I Create a 'Layered' Crystal Report in Visual Studio 2015 Plug-In

I am trying to generate a 'layered' Crystal Report using the Crystal Report plugin for Visual Studio 2015. I am having formatting problems and would like suggestions on grouping or formatting that will help me achieve something like the below image (what I am trying to achieve).
The first layer includes headers--the row beginning with Time of Search. There are multiple results for that section. I.e. Time of Search could have that 11/12 value pictured and an 11/14, 11/19...
The second layer returns a list of details associated with the first result. In fact, for this example there would be 187 results. My difficulty is that this second section has its own header as well. After printing the seconds sections details, I would like the first header to be displayed, followed by the first header's data, then second header, then second headers data.
There is no way I can know prior to generating the report how many section ones will be needed. Additionally, I do not know how many section twos will be associated with the given sections one. Any help is greatly appreciated!
This was achieved by using two groups and placing the Time of Search row in one group header say 1A. The details from that row were placed in group header 1B.
A second group say 2 contained the blue box row as its header. The list below was filled within the details area.

How to Supress Report footer on grouping

I am using the below crystal report to display my record and also to group using the column batch . The Main report works fine , however, when i group by a particular batch, The report print the group footer and proceed down with another empty long row to the end of the page. I tried to fix this but i dont seem to get it going yet. I set the report and page footer to supress blanc spaces yet nothing change.
Also when printing the report, it print an empty grand total row on each page. This also i am not sure why it does that. PLs any suggestion would be appreciated.
Just like suggested by siva .It turned out, i use a single line to divide the columns of the report. That say, both the report footer and the group footer rows will while grouping ,because the same vertical line transverse through . When i minimize the lines and restrict each to it section , the error goes away.

Set the height of Details section Crystal Reports

The no of items in my invoice never gets more than 10. When its only one item in invoice(one row in details section) the report footer shows very up.
I want that I should fix 10 rows for the details section, when there are less rows, the remaining rows to make it 10 should be showed as blank lines.
I need the footer to appear at the same place all the time, irrespective of how many items are there in the invoice(never gets more than 10).
Please suggest solution.
Just use Sub Report and Fix the height of the sub report
then you will be able to display fix page.
I am not exactly sure what you are asking, but I will make some guesses with possible solutions.
If you print multiple invoices per report, you can group on the invoice designator, and set the report to start every invoice on a new page. In addition, you can force a new page when the record count goes over 10 rows. There are various ways to do this, but the simplest would be to add a counter that is set/reset at the start of an invoice, and then conditionally force a "new page before" if that counter reaches 11. You can also set this to force a new page for every n + 1 records (the 11th record, the 21st record, the 31st record, etc.)
If you just don't want the report footer to show up, you can either suppress it or issue a "new page before" on report footer. This is handy if you keep a summary page for reference (# of invoices in run, total balances, etc.).
If you just don't want a floating footer, you can select "print at bottom of page" for any section. This is handy for group totals. That, with "Repeat Group Header on Each Page", you can get some very nice looking invoices.
to fix height of detail section ..suppose i want size of 8 rows/records then
right click on detail section ->section expert ->on paging tab-> check on New page before beside button (x+2) write formula below given..
IF Remainder (RecordNumber, 8) = 0 THEN
TRUE
ELSE
FALSE
I know this question is really stale, but here's how to do what the OP asked.
You need to do 2 things. Find out the amount of real estate you need on the page for the 10 rows, and create a group footer that is that size directly beneath the detail line (e.g 2" or 5 cm).
Then, go into the section expert for the detail line and check the Underlay Following Sections box.
If you are ever going to have more than 10 detail lines, you also need to go to New Page after on the Paging tab and put in 10.
Put all fields Top = 0
Decrease section height.
Now, you have to set fields top dynamically.
Like this:
cr.Section1.ReportObjects.Item("Line1").Top = 0
cr.Section1.ReportObjects.Item("Line2").Top = cr.Section1.ReportObjects.Item("Line1").Top + cr.Section1.ReportObjects.Item("Line1").Height