473,493 Members | 4,355 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Modifying DefaultPageSetting at runtime for LocalReport -- HELP! --

Rod
I'm using:

Microsoft.Reporting.WinForms.ReportPageSettings pgSettings = reportViewer1.LocalReport.GetDefaultPageSettings() ;
pgSettings.Margins.Right = 40;
pgSettings.Margins.Left = 40;

... to set my page margins for the report, but when I click the page setup, it still shows 100 (1 inch).
Can anyone explain this and offer a solution? I don't want the end users to have to set the margins
each time before printing.

Thanks!
Jun 1 '07 #1
0 1496

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
2170
by: pvinodhkumar | last post by:
1) char* p = "Plato"; p = 'r'; // runtime error 2) char c = "Plato"; c = 'i';// ok.Why no runtime here?Why is the contradiction? cout << c << endl;
0
1473
by: ad | last post by:
Hi, There is no print button when use LocalReport with WebApplicaiton. The article http://forums.microsoft.com/msdn/showpost.aspx?postid=22277&siteid=1 Show us how to print with program, but it...
1
1694
by: Pieter | last post by:
Hi, I have a Report (VB.NET 2005), and I'm using Objects as DataSource. I have the object objCompany, which contains a public property MyAdress (instance of objAdress). objAdress has a propert...
1
36326
by: Brett Romero | last post by:
I have a winform with a reportviewer object on it. I'm trying to get data from a datatable to display on the report. myDatatTable is created and filled at runtime. I don't get any errors but...
6
1623
by: Marc | last post by:
Hi, I am using the below code which simply allows a single button control to be dragged and dropped anywhere around a form. My problem is that want to move about 100 buttons on the form. Is...
5
10139
by: cpnet | last post by:
I'm able to pass string parameters with no problems to a LocalReport being displayed by the ASP.NET ReportViewer control. However, my report also has a DateTime parameter. ...
3
3680
by: Oenone | last post by:
Sorry for the cross-post, but I'm not sure what the best place to post this is, and I'm getting a bit desparate. Part of our product uses the SQL Server Reporting engine to create reports in...
5
2614
by: IUnknown | last post by:
Ok, we are all aware of the situation where modifying the folder structure (adding files, folders, deleting files, etc) will result in ASP.NET triggering a recompilation/restart of the application....
0
1197
by: =?Utf-8?B?Umljaw==?= | last post by:
The following code is diaplaying a blank report; how do I fix it? private void Form1_Load(object sender, EventArgs e) { LoadReport(); } public void LoadReport() {...
0
7118
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6862
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7364
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5452
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4886
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3087
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1397
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
282
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.