ReportViewer & PageSettings.HardMarginX

G

Guest

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.
 
J

Jeffrey Tan[MSFT]

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
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
G

Guest

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.
 
J

Jeffrey Tan[MSFT]

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
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top