Code Monkey home page Code Monkey logo

ssrs-element-centering-tool's Introduction

SSRS-Element-Centering-Tool

Simple program to centre stuff on an SSRS report, based on element and page sizes.

What?

Have you ever wanted to allign something in SSRS report builder, but have the dreaded problem that the alignement options are greyed out?

align

This is for you!

Why?

For whatever reason, centering an element (text box/ picture/matrix ect) in report builder just doesn't work sometimes. To centrally align elements I have been using the 'Location' variable under the 'Positon' menu - pos

Using the ground breaking mathematical formula of Centre = (Page size / 2 ) - (Element size / 2 ), any element will now be perfectly centered when you enter the result into the elements X-axis location variable.

How?

Using absolutely groundbreaking JavaFx and the above mentioned formula, simply enter the width of the report page and the width of the element to be centered, choose the correct measurement unit and calculate. Here's a worked example;

  1. Get the size of the report page and element

pagesize

elementsize

  1. Enter in the centr app and select correct units (both units don't have to be the same)

appshot

  1. Press calculate and fail to contain your excitement

result

  1. Enter the result and marvle at your now perfectly centered element!

final

Note: This is all based on the premise that Report builder measures the 'distance' variable from the far left side of the element. Should this change at any point, burn this repository

//JB 21/03/18

ssrs-element-centering-tool's People

Contributors

jamesbrightman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.