I am using Cognos 10 report studio. I have a data item DESCRIPTION which is a lengthy string. While I run the report last part of the DESCRIPTION is being truncated. I tried setting size and overflow it did not work for me.
Please help !!
As a default, the 'White Space' setting on the column will determine its wrap behavior. Manually setting it to 'Normal' should enforce a wrap.
The size and overflow settings can limit the width of a column, but a single long word will override that width limit (although the rest of your text will obey the width limit, leaving some strange looking columns.) Leave size and overflow as the default (no limit) when possible.
Related
AGENTRY-IPAD deployment
I am trying to add a new custom field under notification details in "workorderdetailscreen(Ipad)", But when I set the alignment, it is showing up slightly below the required position overlapping on the below field(not completely changing the row too) When I set the height to 1, It is aligning correctly but when the height is changed from auto to 1, there is an edit option appearing beside the field("i" symbol in Ipad)which implies to edit the field so is there a way I could align correctly and get rid of the edit option beside it as well?
Thanks in advance.
By Removing the Dummy Wrapper from the object property in the field and populating the field by giving the Rule gives the result, even if you increase the height it will not give the Edit "i" Symbol
I have placed two crosstabs one below another. But They are not getting aligned. How to align the two cross tabs such that corresponding columns align perfectly.
The quick and dirty way is to use fixed widths on all cells.
This will work fine for PDF, but will not work for HTML if:
You're using a modern browser (IE9+, FF/Chrome from last 5 years)
The total width exceeds screen size
There is no total width set on the crosstab itself
It will then ignore the cell widths and try to force everything to the screen width, thus the crosstabs will not align again.
I wrote some JavaScript awhile back which will combine two tables into one so fixed width is not needed. The full blog post is here. This will only affect HTML outputs, so for PDF I created a second page and just conditionally rendered one depending on user selection.
Fixed width is the only viable solution )
But you can use Report Classes to have a single “width” definition and apply it everywhere. It actually makes your reports look way neater.
Use Blocks in the cross tab cells, you will need to unlock the report first to do this
Set the block size to be the same on both cross tabs and then select content is clipped (Size and overflow property of the block)
This will work for both html and pdf output
I was able to do this by doing the following:
Set the Size & Overflow > Width of BOTH crosstabs to the same width in pixels.
Unlock the report, select the crosstab Text items in BOTH crosstabs and set them all to the same width (or individual columns to the same width if needed).
With the report still unlocked, select the text items in the crosstab 'Rows' and set those to the same width.
It's not pretty, but nothing in Cognos ever is.
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
I have an Excel file generated by JasperReports. What you can see here is the Excel's column will be display ### if the number is too long. I don't want to resize the width of column, i just want to display the number without seen as ### and stretch the height. I have tried set the column to Stretch with overflow and Stretch type = Relative to band height
This is the screenshot:
You will need to set the appropriate Jasper Reports excel property on your report element, or on the whole report iself. Documentation: http://jasperreports.sourceforge.net/sample.reference/xlsfeatures/
Specifically
net.sf.jasperreports.export.xls.column.width.ratio
If these properties are not available in your JasperReports version, you may have to simply fiddle around with the sizing to get something decent.
I have report with dynamic-width list which when exported to pdf has every second page blank. I followed instructions given here, squeezed everything as hard as I could - and it worked. However I also have footer inside which I have horizontal line that should continue through whole page width. If I make it long I have every second page blank, if I make it short - it stays that short. Also suppose I need to have textbox at the far right corner of a page, which again would make blank pages in pdf to appear. Is there any solution to this?
One thing I have found useful to diagnose exactly why SSRS is generating blank pages, is to set the background of the report (or report elements) to a non-white color. Generate the report again, then you can usually see what is being spilt over into another page. You can usually figure out what SSRS is doing, and tweak your report accordingly.
Set the report property ConsumeContainerWhitespace to True. I believe the default is false, so if you didn't think to ltrim(rtrim()) in your dataset, something I often forget to do, then the whitespace could be causing it.
For the line, if it is simply to separate the footer from the body of the report, try selecting the entire footer row and set the BorderStyle-Top property to Solid instead of having a line.
For the text box, it has to be entirely within the page dimensions or you will get a second mostly blank page. Left margin + right margin + report width <= page width. On one of our printers this still isn't enough so we have to reduce the right margin by another 0.05cm more (so 0.45cm instead of 0.5cm which it should be) to stop getting blank pages every second page.