RDLC report viewer in visual studio 2019

Anonymous
2024-08-17T14:35:02.9366667+00:00

I am a beginner to using the RDLC report. When I'm making the layout of my report, there is no margin. Please take a look the image below.

rdlc

Then, when I view my report using Report Viewer, it shows a margin. Please take a look at the image below.

rdlc1

I tried to put zero margin in the report viewer, but it didn't work.

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,063 questions
Developer technologies | C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2024-08-17T17:40:57.46+00:00

    The margins are from the renderer, not the report. For example if you're rendering as HTML then the margins are controlled by the styling. For a PDF the margins are controlled by the PDF printer.

    If you look at the Report's properties then the margins can be set there. This is supposed to be used by the renderer to help control rendering but it is up to the renderer to decide how much.

    You didn't specify what report viewer you're using. There are several including Web Forms, Win Forms, SSRS UX and custom. Can you share your viewer information, report properties and repro steps?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.