diff --git a/categories/reporting-solutions/rules-to-better-reporting-services.md b/categories/reporting-solutions/rules-to-better-reporting-services.md index 4fc4aeb98d6..1648791c2c0 100644 --- a/categories/reporting-solutions/rules-to-better-reporting-services.md +++ b/categories/reporting-solutions/rules-to-better-reporting-services.md @@ -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 --- diff --git a/rules/print-and-display-report-on-web/RSRuleMoreTopBottomPDF.png b/rules/print-and-display-report-on-web/RSRuleMoreTopBottomPDF.png new file mode 100644 index 00000000000..36c9ef15d76 Binary files /dev/null and b/rules/print-and-display-report-on-web/RSRuleMoreTopBottomPDF.png differ diff --git a/rules/print-and-display-report-on-web/RulesSQLRS7.jpg b/rules/print-and-display-report-on-web/RulesSQLRS7.jpg new file mode 100644 index 00000000000..3e4f61ea50e Binary files /dev/null and b/rules/print-and-display-report-on-web/RulesSQLRS7.jpg differ diff --git a/rules/print-and-display-report-on-web/reportbodywidth.gif b/rules/print-and-display-report-on-web/reportbodywidth.gif new file mode 100644 index 00000000000..1aef2b82a84 Binary files /dev/null and b/rules/print-and-display-report-on-web/reportbodywidth.gif differ diff --git a/rules/print-and-display-report-on-web/reportpagewidth.gif b/rules/print-and-display-report-on-web/reportpagewidth.gif new file mode 100644 index 00000000000..a3dd280c754 Binary files /dev/null and b/rules/print-and-display-report-on-web/reportpagewidth.gif differ diff --git a/rules/print-and-display-report-on-web/rule.md b/rules/print-and-display-report-on-web/rule.md new file mode 100644 index 00000000000..cc4e85533d2 --- /dev/null +++ b/rules/print-and-display-report-on-web/rule.md @@ -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: [] + +--- + + + +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. +