---
title: "Sql server report alignment to center of web page"  
description: "Sql server report alignment to center of web page"  
author: "Pravesh Singh"  
published: 2013-04-06  
updated: 2013-04-06  
canonical: https://www.mindstick.com/forum/718/sql-server-report-alignment-to-center-of-web-page  
category: "ms access"  
tags: ["ms access"]  
reading_time: 1 minute  

---

# Sql server report alignment to center of web page

Hi All!\
I am using [SQL Server](https://www.mindstick.com/articles/12999/what-is-table-valued-function-in-sql-server) [Reporting](https://www.mindstick.com/articles/12967/portable-reporting-systems-and-mobile-device-management) [service](https://www.mindstick.com/articles/105963/online-thesis-writing-service-for-college-kids-with-disabilities) for [reports](https://www.mindstick.com/blog/11576/magento-reports-extension) and displaying it with [Report viewer](https://www.mindstick.com/forum/406/how-to-view-reports-in-c-sharp-using-microsoft-report-viewer) [control](https://www.mindstick.com/blog/197/asp-dot-net-repeater-control). It is displaying the report on left side of the page. I want it to be center aligned.\
I tried Following things but it didn't worked out.\
[Wrapping](https://www.mindstick.com/interview/399/q-why-should-i-bother-wrapping-items-in-a-comboboxitem) Report viewer control in div or table and make it center aligned.Zoom mode of Report viewer Control.So please give me some solution for making it center aligned.\
Thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)!

## Replies

### Reply by AVADHESH PATEL

Hi Pravesh!\
You can do as below\
<div align="center">\
<rsweb:ReportViewer ID="ReportViewer1" runat="[server](https://www.mindstick.com/articles/43769/what-is-serverless-architecture-is-it-worth-switching-over)" DocumentMapWidth="100%" Font-Names="Verdana" Font-Size="8pt" PromptAreaCollapsed="True" ShowToolBar="False" Width="1100px" Height="100%"> </rsweb:ReportViewer></div>\
it work with jquery also on client side\
$('#ReportViewer1_fixedTable tbody tr').attr("align", "center");\
with server side\
ReportPageSettings rst = rptVwr.LocalReport.GetDefaultPageSettings(); if (rptVwr.ParentForm.Width > rst.PaperSize.Width) { int vPad = (rptVwr.ParentForm.Width - rst.PaperSize.Width) / 2; rptVwr.Padding = new Padding(vPad, 1, vPad, 1); }


---

Original Source: https://www.mindstick.com/forum/718/sql-server-report-alignment-to-center-of-web-page

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
