I need the gray box in my report to print in the Details section to the right of the actual details:
The defect code box is a subreport that serves as a key to various defects that pop up in the details. How do I get it to appear on the right without increasing the height of the Detail section, and such that the gray box does not repeat.
There's a few ways to do this, but due to the nature of Crystal Reports it might be difficult to pull off.
I'd recommend placing the white table on the left into its own subreport. Then you just arrange the subreports so one is on the right and one is on the left. That's probably the least amount of work.
If that's not an option, you could in theory turn the gray box into a very weird, very specific formula. (Not recommended, but still doable.)
You'd write this formula to contain a large if-else statement based on the record number. (If it's the first record, the report displays "DEFECT CODE". If it's the second record, display "SI - SLAG INCLUSION" and so on and so forth. Change the background color of the formula to gray, and suppress it if the record number goes past the final line.
Again, I don't recommend this last suggestion, but if you absolutely can't put the white table into a subreport you can get this to work with a little elbow grease.
Related
I want when my PickUpsCRY is greater than 0,this column is fully disappear else it should be shown .
You can't really suppress horizontal space in the same way you can suppress vertical space (via the suppression of report sections, etc.). So, while you could technically suppress that column's fields, header, lines, etc. with the suppression formula max({table.PicksUpsCRY})>0, you won't be able to get rid of the whitespace and it'll appear as though you've just got a hole in your table.
You could move this column to the end so it's not as obvious that there is a column missing, though.
When I export my report to pdf, appear me weird page breaks.
If a lengthy report, that happens to me is that if a table does not fit in the remaining space of a page, it automatically passes me to the page below, thus creating blanks spaces.
Already have enabled the property Keep Together, interactive size to 0 and i unchecked keep together on one page if possible in tablix properties.
However I think the problem is not in the table, because before that, I have a textbox with a title, and is between the table and the textbox that makes page break.
I have already put the textbox and table inside a rectangle, but still have this problem.
Any suggestions?
Q: is the table / text box that responsible for the page break issue is inside a Subreport ?
If so, then this is your problem (unless you make a call that this table will always be short enough to stay in single page).
You have to understand: the subreport is the cause for the breaking, the table will not split because it is presented by the sub-report that has to stay in one piece.
The options are:
Stay with the subreport - but make sure that the table Maximum length will still fit the Page that the sub-report is lay in it.
take out the table from the subreport and place it directly in the main report - that way when the table too long to stay in single page, it will split into two pages.
i am creating a report for SQL Server 2008.
i have a table with some rows. One of the row has a long text which will be displayed. If the text has a certain length, the whole row will be displayed on the second page and the half of the first page is empty.
If the text is a bit shorter, the text will be displayed correctly on the first page.
If the text is a bit longer, the text will also be displayed correctly (the first part of the text on the first page, the second part on the second page).
I cant find any settings for this problem.
Does anyone have a solution?
Thanks
Alex
You could look at the Keep together on one page if possible setting at the Tablix level.
You can also look at the KeepTogether property at the row level and at other levels, e.g. Group.
Another option is to insert any objects to be kept together in a parent Rectangle object; this will always keep items together where possible.
I'm working on a report which displays a configuration for a product, which depending on the product choosen has specific properties. I thought it would be handy to have one rectangle with a table on the left (tblDetailsB) and one on the right side of the report (tblDetailsA) (don't mind the order of A and B here...).
Under the rectangle I have another table which shows a list of drawers (if they're part of the configuration), this list comes from another dataset.
My problem is the size of the rectangle which holds tblDetailA and tlbDetailB is fixed (that's usually why one chooses a rectangle to hold..) and my tlbLade subreport for the drawers is under a lot of whitespace..
I could use subreports for tblDetailsA and tblDetailsB but I don't want to have too many of them..
I got myself into this mess, maybe someone knows a much better idea to solve this?
Thanks to http://www.sqldev.org/sql-server-reporting-services/hidden-rows-still-displayed-9660.shtml
I found out I have to suppress / hide the rows in the static row group under the details group (switch to advanced mode first..).
When I did that the size of the Rectangle (container) was ignored when the rows where hidden :)
Regards,
Mike
I have a multi-column Crystal 2008 report that is grouped on a date field, and I want to prevent that group from being split across the column to column boundary.
Googling it, it seems impossible - no one even has some sort of hack for faking it.
Here is an image of the issue - I would like Friday the 26th to all be in the second column.
Nothing is impossible!
While initially discouraged with the voted answer, I kept searching and found something about using a subreport for the "details". Then I used a mailing label, although this may not be necessary, but in my use I wanted each group to have identical size, this worked perfect to make sure the groups stayed together in the columns. It is a little clumsy but seems the subreport won't cross columns.
Anyway this is an old topic, but thought I would leave this here just in case someone dusts it off.
Looks like this is impossible for now.
Right click the group, select 'Change Group...', select the Options tab, check the 'Keep group together' option.
If you can determine beforehand that you want the group to print on the next column, have a blank detail line extra at the bottom of the detail lines and check the print at bottom of page and suppress it with a formula that is controlled by either a crystal variable or a database field. This is the only way I have found to cause a group to stay together. You find the print at bottom of page in the section expert, add the blank line as the last of your detail lines.