Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2006

Tip: Looking for answers? Try searching our database.

ReportViewer & PageSettings.HardMarginX

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jwat - 30 Jan 2006 21:20 GMT
In a report, I tell a table or a text box to print at specific coordinates
but it is off. How do I teach ReportViewer to take PageSettings.HardMarginX
and PageSettings.HardMarginY into consideration?

This occurs in .NET Framework 2.0.
"Jeffrey Tan[MSFT]" - 31 Jan 2006 06:40 GMT
Hi jwat,

Thanks for your post.

I am not sure I understand your problem very well. Do you use PrintLayout
or normal layout? Can you provide a little sample project to demonstrate
your problem? Then we can understand it much better. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

jwat - 31 Jan 2006 14:17 GMT
I am using the web newsgroup client and I don't know where to send a zip of
the project. I don't know what you are talking about print vs normal layout:
the documentation is sparse.  My project is your "Walkthrough: Using a
Business Object Data Source with the ReportViewer Windows Forms Control in
Local Processing Mode" with just 2 minor changes.

1) The location of the table is 0.5in, 1.0in
2) All of the margins of the Report object are set to zero

When this is printed the table is positioned at 0.75in,1.09375in from the
top left edges of the page. The PageSettings.HardMarginX being 0.25in and the
PageSettings.HardMarginY being 0.09375in.

> Hi jwat,
>
[quoted text clipped - 9 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
"Jeffrey Tan[MSFT]" - 03 Feb 2006 07:52 GMT
Hi jwat,

Thanks for your feedback.

As for the layout mentioned before, I can explain it to you.

There is two layout modes in ReportViewer, one is normal layout, another is
print layout.

When using the normal layout, the ReportViewer will simply render the
report without taking the PageSettings.HardMarginX and
PageSettings.HardMarginY into consideration .   But in print layout, the
ReportViewer will check the page setting and render the page preview as you
like.

There is a button named "Print Layout" in the top toolbar of the
ReportViewer, during the runtime, you can change the layout mode by
clicking  it, when the button is pressed, the mode will be changed to Print
layout, and now you can watch the preview of what you will get.

Besides this , there is another button named "PageSetup", you can set the
page margin inside it. And printlayout will show out this margin setup in
time.

However, the printer hard margin will add with this page setup margin to
get the final result. So I suspect your real concern is how to show this
hard margin with PageSetup margin to get the real print result effect, yes?
If so, I think ReportViewer design does not take printer hard margin into
preview consideration.

I suggestion submit this issue as a bug report to the link below:
http://lab.msdn.microsoft.com/ProductFeedback/

Our product will work with you directly. If you got any useful feedback.
Please feel free to feedback here to share with the community.

Hope this helps

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Signature

Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.