Skip to content

Commit

Permalink
migrated rule
Browse files Browse the repository at this point in the history
  • Loading branch information
jeoffreyfischer committed Dec 15, 2023
1 parent c15fc62 commit 37609d4
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ index:
- check-that-rs-configuration-manager-is-all-green-ticks
- check-out-built-in-samples
- two-migration-options-to-show-acccess-reports-on-web
- print-and-display-report-on-web

---

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions rules/print-and-display-report-on-web/rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
type: rule
archivedreason:
title: Does your report print and display on the web correctly?
guid: cc62742e-d48b-4f76-a4b4-49bfd5232ffd
uri: print-and-display-report-on-web
created: 2023-12-11T14:38:33.0000000Z
authors:
- title: Jeoffrey Fischer
url: https://ssw.com.au/people/jeoffrey-fischer
related:
- customization-do-you-know-which-version-of-sql-reporting-services-and-visual-studio-you-are-using
redirects: []

---

<!--endintro-->

A lot of the time, you will want a hard copy of your reports. Obviously reports are different sizes on screen and on paper, so you need to format your report so it exports to PDF and prints properly. Here's how.

1. Change the report's page width to 28cm (or 11in) and top and bottom margins to 0.5cm.

::: good
![Figure: Good example - For proper printing, first change the Report's Page Width to 28cm (or 11in) and top and bottom margins to 0.5cm](reportpagewidth.gif)
:::

2. Change the Body width to 25.4cm (or 10in)

::: good
![Figure: Good example - Then change the Report's Body Width to 25.4cm (or 10in)]reportbodywidth.gif)
:::

::: bad
![Figure: Bad example - PDF page with 1cm margin (wasted much space on top and bottom)](RulesSQLRS7.jpg)
:::


::: good
![Figure: Good example - PDF page with 0.5cm margin (you have more room for content)](RSRuleMoreTopBottomPDF.png)
:::

You can see the 0.5cm margin looks much better than 1cm, and you have more space to organize your content, especailly for a landscape print view.

3. Resize report items (tables and charts) to fit the page. The easiest way to do this is to select (Ctrl+click) all report items that should span the whole width of the page, and set their Width property to 25.4cm (or 10in).

**Tip**: Export your report to PDF and do a print preview, so you don't have to print a lot of testing pages to find out the best page settings.

**Tip**: Remove top and bottom paddings in header and footer text can also give you more space.

**Note**: Reporting Services reports accept both inches and cm, so you can use either.

We have a program called [SSW Code Auditor](https://codeauditor.com/) to check for this rule.

0 comments on commit 37609d4

Please sign in to comment.