Crystal Reports: controlling cell padding using formula in cross tab - c#-4.0

I am working on a crystal report in VS 2012. I have a cross-tab in it which is displaying required data. My problem is when I am getting less no. of rows, then its shifting upwards, leading a blank space in rest of the page.
Now, I want to set cell padding of cross-tab using some formula, so that I can increase some vertical spacing of summarized fields in order to make my report look better.
If anybody can tell me how to achieve this?
Here is a snap of my report:-
Report Card
Thanks,
Prakhar Mishra

Related

make direction of excel sheets of my birt report right to left

I have a birt report with excel output. I want to make the sheet direction right to left.
I try to do this via adding new style, but the style just make the text in cells right to left, not the direction of excel sheets itself.
This is an unresolved issue in BIRT. The report orientation does not work for XLS/XLSX. It might be either because of the way BIRT transmits BIRT-elements into excel cells or simply because no XLS-transmitter supports the feature. However, it does at least work for PDF - if that helps.
Eventually, you might just want to recreate that report with the desired orientation. To "align" elements like a headline most-right, you usually create a grid with a number of colums that equals or exceeds the number of columns of the data table. Then you put the headline element in the right-most cell of that grid.
Hope you find a way!

Extra column inserted before other columns when exporting to excel

I know how tricky it is to align things in a way that allows a clean export to excel, however, on this one I am stumped and have never seen it before.
Anyone know why the excel rendering extension insists on inserting a column like in the attached image?
Things that I have tried.
Set the table's position to 0,0.
Removed all borders and padding.
Set the report margins to 0,0,0,0
NOTE : I am using the EXCELOPENXML rendering format as opposed to EXCEL in order to support *.xlxs.
Groupings:
First Column in the Designer:
The report was being rendered as a sub report and was placed in a rectangle and aligned right in the main report, however, the rectangle was one twip off from left align. Once I aligned the rectangle in the main report, the phantom column disappeared.

TextBox data is cut off when exporting to Excel 2010 from SSRS 2008 [duplicate]

I have a Table in an SSRS report. one of the Table Cells contains the Descriptions of Parts in an order. these descriptions could vary in length and for that reson i have set the "CanGrow" Property to True. when i try to export the report to Excel im expecting that if the text length would exceed the width of the Cell then the height of the cell would grow and the whole text would be shown. Unfortunately the SSRS Excel Generator keeps the height as is and so only the part of the text which fits the width of the cell would be shown.
i would appreciate any help or input to solve this problem.
Thanks
I've found that instead of removing any elements before the tablix, you can change their width to match that of the page.
I found the solution of the same problem! :)
Set the "CanGrow" Property to False for all cells from one row.
And also set the "Height" Property to your specific size.
This is how the Report Viewer's Excel renderer works. You cannot change the way it exports the excel file, however, there are other ways to resolve your issue.
Write your own Excel Renderer (not a good idea -- time consuming)
Fix the column widths before exporting
After exporting to Excel, edit the Excel file via COM calls
My suggestion is #2 -- You can load the RDLC file in memory, and do your modifications there, then call the ReportViewer export function for that altered report.
If you have elements before your tablix this can stop the growth. I've found that removing all elements before the tablix will restore the desired row-growth/auto-fit behaviour. I have not found a better solution yet.

Report Builder 3.0 / VS2012 - How does one create a fixed-sized detail area of a report?

I am having some issues with Report Builder 3.0 and VS2012 in creating a invoice-like report that contains a fixed-sized section where detail rows will display. This section must be of fixed size so that each rendered report page will fit in a specific space regardless of the number of items. Items that would not fit then print on a new report page with the header and footer repeated.
I am not able to accomplish making the detail area a fixed-size. After searching for help and only coming up with some old (and unanswered) MS TechNet questions, I took the advice of this TechNet article which suggests using a rectangle inside of a tablix cell, then placing a detail tablix inside of the rectangle to achieve this effect.
This practice does allow me to add any amount of whitespace to the report, but it does not remain a fixed-size. On rendering the report, the rectangle will increase in size for each detail row (even though the rectangle is already big enough to fit the row), resulting in anything below the rectangle to be pushed onto new and unwanted pages. The rectangle doesn't have a "CanGrow" property to prevent this.
I have tried setting the "CanGrow" property on the detail tablix cells to "false". This only limits the actual cell from applying text wrap and expanding to fit cell contents; it doesn't appear to affect the rectangle. I have also set the "CanGrow" property on the parent tablix cell to "false", but this has no effect. Incidentally, I found that when I add a rectangle inside of the parent tablix cell, the "CanGrow" property will reset to "true".
To rule out an issue with Report Builder, I attempted to create the same report in VS2012 (as a .rdlc). I encountered the same design problems.
I have four questions:
Is this the correct way to go about creating the effect I need?
If so, what part am I missing?
Is there a another solution?
Are SSRS reports capable of this at all?
Here's a visual example of what I'm trying to create:
To fix your issue you should change the ConsumeContainerWhitespace property of the report to True.
ConsumeContainerWhitespace Link
This will also fix white-space problems with reports created in SSRS 2005 as in this version whitespace was automatically consumed.
See SSRS 2008R2 changes

Crystal Reports displays #### in numeric fields after upgrade

I upgraded a Visual Studio solution containing Crystal Report files. Since the upgrade, the reports are displaying cross hatches (also called number signs: #####) when fields are too narrow to display their values. It was not doing that before. Is there any easy solution?
I have 9 reports, and although I tested them all, and fixed the width of the fields that appeared to be too narrow, when I use different data sets, I always find new cases where the field is too narrow to display the value.
What I have found out is that most of the time, only a few pixels are missing. On the old reports, I can even see that some numbers are cut a bit on the edge, but it does not prevent to read the values. The new version of Crystal Reports replaces those values by #####.
I guess I have two solutions: Enlarge all the fields by a few pixels or reduce the font size. I am not sure though if there is a way to do this globally, or if I have to do this by hand for every field.
Is there an easy way to tell Crytsal Reports, in such field, I want to be able to display let's say 5 digits using Courrier New 10 points?
I using Visual Studio 2012, .Net 4.5 and SAP Crystal Reports, developer version for Microsoft Visual Studio SP5. The old reports were from the time when Crystal Reports was embedded in VS.
If you can't format the fields to accommodate the largest values from the database, then you don't have many good options without moving to a non-printable-format. These two things might be useful to you:
Enable the clipping of those fields so that they no longer show the '###'. You can do this by right-clicking the number fields having this issue, selecting "Format Field", then go to the "Number" tab, then click "Customize". There should be a check box that reads "Allow Field Clipping". In my mind, this is pretty dangerous as values can appear differently than their true numerical values.
Set the fields to grow when the values are larger than their field size on the canvas. This will extend the fields down the page (I don't believe there is a way to do this horizontally) when necessary. You can access this option by right-clicking the fields, selecting "Format Field", then go to the "Common" tab and select "Can Grow". Note that this doesn't work for numeric fields so you will have to convert it to a string first.
EDIT: Now that I think about it, there is a way to extend a field horizontally, but it's slightly more difficult to pull off and will require calculating and passing the desired width via a formula. You can access this formula by right-clicking those fields, selecting "Size and Position" and clicking the formula button next to "Width".
Whenever I come across #### problem while displaying data to field, I just simply increase width of that crystal reports field

Resources