Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8738103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:40:22+00:00 2026-06-13T10:40:22+00:00

I again have a little problem. I have used ReportViewer in my Windows Form

  • 0

I again have a little problem.
I have used ReportViewer in my Windows Form Application in visual studio 2010. The width of my report id about 7 inches. When i view the report in print layout, the report is cut across the page,i.e, only half of the content is on the page and rest is out of right margin and page boundary. I then have to click page setup in the report viewer top menu to change page setup, i just reduce left and right margins to 0.25 from 1 each.

I don’t want to do it every time I view and print a report. Is there a way to change these setting programmatically in C# or change the default page layout?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:40:23+00:00Added an answer on June 13, 2026 at 10:40 am

    you can use below code:

     System.Drawing.Printing.PageSettings pg=new System.Drawing.Printing.PageSettings();
     pg.Margins.Top = 0;
     pg.Margins.Bottom = 0;
     pg.Margins.Left = 0;
     pg.Margins.Right = 0;
     System.Drawing.Printing.PaperSize size = new PaperSize();
     size.RawKind = (int)PaperKind.A5;
     pg.PaperSize = size;
     reportViewer1.SetPageSettings(pg);
     this.reportViewer1.RefreshReport();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm migrating an application from ColdFusion to ASP.Net MVC and have a little problem
I have this problem again and again... and still have not a satisfactory answer...
Hello again everyone, This time I have a problem with Intent & Extras. here's
i got a problem once again :D a little info first: im trying to
I've very little experience with databases and have run in to a problem with
I have a nice little threading problem with a library I use to generate
I have run into a rather weird little problem. In the following code I
I have got a little problem. I got a bxslider running on a website
I have a little application, let's call it launch.exe. It is a c++ appl.
I have an interesting/annoying problem with some VBScripts running on Windows 2003 Server (they

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.