to make large SSRS report printable - sql

I am having issue while printing report from SSRS. I can export to Excel. This is big layout report. Can you please provide any suggestion to make it printable.

I'd recommend exporting, then in excel you can see the print boundaries after opening and closing the print menu. You can then adjust the size of the columns to allow it to fit within a single page width. Beyond that, changing font size or scaling the data in the print menu. I'd need more details to give a more exact answer.

This would really depend on how "big" the layout of your report is.
You want to determine what is the biggest paper size you are able to print on, then you can set the dimensions of the report to correspond with the size. Easiest way is to right click outside of the report body and click "Report Properties". You can pick your orientation, paper size and the margins.
When I have a report with a good number of columns that needs to be printed, I typically set the paper size as Letter (W11 x H8.5), orientation of the report to Landscape, set left and right margins to .25. This means the max width of the report cannot exceed 10.5 in. (W11 - .5 (left and right margin combined)). To verify this, go to Properties window (F4), on the very top of the window there is a dropdown that highlights which properties you are adjusting, make sure it's selected to Body. With this example, the size of the body should have a width not exceeding 10.5 in..
When you Preview the report, in the toolbar there is a Print Layout icon, this will show you what your report will look like when it's printed.
If it still doesn't print nicely despite setting all the size correctly, I would recommend removing some columns.

Related

SSRS report vertical alignment changes in to horizontal

I have created a report using Visual Studio 2017 and made some of the columns in vertical alignment and uploaded RDL file at reporting services to run the report at work application.
When I run the report at Test environment the report displays the vertical fields into Horizontal, however when I print to view the report vertical text remains the same.
How can I make the report to display the fields that I have designed in vertical?
Any suggestions with the above will be highly appreciated.
Try this:
In tablix properties, Make the Writing Mode as Horizontal.
In a Reporting Services paginated report, you can rotate a text box in different directions:
1.Horizontally
2.Vertically (rotated 90 degrees, with text reading from top to bottom, except East Asian text characters)
3.Rotated by 270 degrees (text reading from bottom to top).
Because you rotate the text box not the text, the rotation applies to all the text in the text box. You cannot specify different directions for parts of the text. Size the column width and the row height manually to accommodate the rotated text.
The WritingMode property, which you use to specify text orientation, isn't in the Text Box Properties dialog box. It's in the Properties pane and set the property there.

SSRS BIDS 2008 Bubble chart - Bubble size

I am using SSRS BIDS 2008 to produce a bubble chart. My chart has around 80 bubbles that are sized on a certain field, however the majority of my bubbles are tiny with 5/6 being massive. I need to somehow adjust the sizing ranges and believe I do this by using BubbleSizeMin and BubbleSizeMax how ever I cannot find these fields anywhere. Can anyone tell me step by step how to get to these fields...? (I have tried right clicking on the bubble in design view, clicking 'Series Properties' and going through all these but cannot see the min/max options)
Some properties aren't exposed through the dialogs, but are still listed in the BIDS properties window. View -> Properties (or F4) will make this window visible if it isn't currently.
Below is a screen shot of BIDS with these properties shown.
I've run into situations though where setting the minimum bubble size wouldn't make the dots any smaller than the default size, so there seems to be some auto-calculation that can override these.

Controls change place and form size changes

I have designed a form in VB.NET. At design time I have placed two buttons on it.
When I run it, the form size looks smaller and the buttons I have placed at the bottom are not visible. Also the alignment of the text and picture box is also different from what I set at design time.
Computer at which I am running the form is using a different resolution.
change the properties (F4) of the buttons: in ANCHOR put Bottom, Right
your buttons will be tied to the bottom and the right of the screen, instead of to the top, left, which is the default.
Grab the screen size at runtime with
Dim screen as System.Windows.Forms.Screen = System.Windows.Forms.Screen.PrimaryScreen
and using a scale factor depending on the current size (in design), scale the window to match. Check the coordinates of the buttons by hand to make sure they are not outside of the visible portion of the window.
You may not have to leave this feature in if you can debug it to the point that you know the exact resolution that you need.

rdlc - phantom page break, what to check?

I have a RDLC report which has some controls on the first page, which are inside a rectangle and which display ok. Beneath the rectangle, i have a matrix, which spans more than one page both in width and in height. I want the matrix to start rendering on the second page. If I enable "insert break before" on the matrix, there is an extra blank page before the matrix(in print layout), which is my problem. If I reduce the amount of data, so the matrix does not span more than one page in width, there is no blank page, and all is well. I checked the Page and Body sizes, they are ok. Any tips? This has been driving me crazy all day, what can I check? Thx
I know this is probably too late now, but I was receiving extra page breaks if my Body size width property was greater than my Report PageSize width property.
Check both these things.
Put borders on everything to see if they are wider than the page. Check the keepTogether property on all the elements to see if they are creating extra white-spaces.
Try setting the 'insert break before' on a dummy rectangle between your first page content and the matrix, instead of giving it directly on the matrix itself.

How to limit RDLC report for one page in a PDF ?

I have a RDLC report and I am displaying it on the Report Viewer Control in my front end application. I am able to view the report perfectly.
But the problem arises when I try to export the report to a PDF (using the built-in option).
I print the report in 3 pages whereas my client wants it to be in a single page. I can't figure out the reason for it as in my report viewer I see only one page but in a PDF there are 3 pages.
Can something be done about it so that I can control the size of the report?
The answer is pretty similar to what Dugan said, but it's not always just the margins.
It is pretty simple though:
When you are editing the rdlc file in design mode, firstly click on an empty part of the BODY area of your design. Hit F4 to see the properties tab. Here, you will see a "Size" property. This can be expanded for the width and height. The width you see here represents the width that the body of your report requires as printable area. Even if you have white space all over, the page knows that it needs to keep it as a printable area. It reserves the space, in some sense. As for the height, the system generally knows that it can grow or shrink as necessary, unless you have specified otherwise within your controls therein. So the width is what will, usually, play the most important role.
Next, click on an empty area of the report (outside the header, body, and footer; basically the gray area around the design), then hit F4 to view the properties panel. Under the "Layout" category of the properties, you will see 3 different options:
InteractiveSize,
Margins,
PageSize.
Each of those Size attributes can be expanded to show the Width and Height. The Margins attribute can be expanded for the left/right/top/bottom.
Basically, the pdf export works out of the PageSize (though I generally try to keep Interactive and Page size equal). When the pdf file is rendered via the ReportViewer's built-in export function, the width and height of each "page" within the pdf will be determined by the width and height in the report's PageSize attribute (you could override this if you used your own custom code for the pdf rendering).
As for the margins, they specify how much space MUST be left blank and unprintable between the printable area reserved for your report and the edge of the page.
In other words:
Your report's Body's Width, Plus the Report's Left Margin, Plus the Report's Right Margin, MUST be smaller than or equal to the Report's PageSize's Width!
So...if your margins are too wide, or if your report's body is too wide, or if the PageSize's width is too narrow, the rendered result is forced to be broken down to multiple pages in order to fit!
For example: If my report's body has width 7.75", my Left margin is 0.5", my right margin is 0.5", and the width specified in the PageSize is 8.5", my report will always use 2 pages for each 1 page of data. The 7.75" width of the body, plus 0.5"+0.5" for the margins add up to 8.75", which is larger than the 8.5" available in my page. So the first 7.5" (or so) of each page of my report's body will be shown in the first page, and the rest will be split down to the next page. This will not be done inside the report viewer, as it allows for the report to grow beyond the page size by just adding a scrollbar, but it will be annoyingly noticeable in the pdf export.
In order to make my example report fit in 1 page, I can either try and reduce the body of my report to 7.5" or less, or I can reduce the left and right margins by a total of 0.25" or more (for example, set them to 0.3" for a total reduction of 0.4"), or I can increase the PageSize to something larger than 8.75".
Note: Acrobat Reader is pretty smart and knows about various paper sizes. Therefore, while arbitrary PageSizes will work, it is typically best to use real page sizes. As such, in my last example I would rather set the PageSize to have Width = 11" and Height = 8.5", which is a real letter-size in landscape! Adobe will typically understand this and print properly.
Also Note: Some printers, especially older ones, have trouble printing with less than 0.3" margins. If you want to be nice to your users, you should best keep the margins large enough for those older printers ;)
I hope this helps.
Always maintain body width : 7.5 or less
Left, Right Margin width less than 0.5
Set the Margin width first -> goto main menu Reports->Report Properties->Layout->change left margin and right margin
Total page width :8.5
Ramana
In addtion to watching your widths, I found other unrelated things that can cause extra blank page in the PDF.
If the tablix has any field with word wrap, this can cause it. You might want to make the font smaller if you have long data. Make the font size property equal to something like this:
=iif(len(Fields!RepGroupName.Value) > 25, "6pt","8pt")
Another thing you may have to do. And this helped me when I had no apparent reason for the extra page. In the Report property page, set:
ConsumeContainerWhitespace = true
Yet another thing to watch for. The body size can grow without you knowing it while making changes to the layout. You might have to knock it back down again.
This issue is highly annoying for the end user if not resolved and annoying as heck for us to resolve.
In case anyone else runs into this issue and ends up here, it's most likely a issue with your margins. If the margins are set incorrectly, you will often get "extra" pages that appear when you try and print, whereas when you view the document everything is fine.