Thanks for Cor's good suggestion.
Hi Steve,
I've also seen your new message in the previous thread. Since this should
be a new question and the previous one has been resolved, I think it proper
to contiue this new session in this thread. If you also feel this
comfortable, I'll close the original one and continue discussing with you
here.
As for the "page setup----> margins" issue, I've performed some tests in my
local environment, and did reproduce the same behavior as you said.
Actually, the value displayed in the "pagesetup" dialog and the original
value (set in rdlc template) is in a fixed proportion. I've just
investiaged the reportviewer's code and found that the ReportViewer control
will always perform the following calculation when migrate the margins
setting from report definition template(rdlc) to its own page settings
properties(will be displayed in page setup dialog):
=============
this.m_pageProperties = new ReportPageSettings((int)
((result1.PageProperties.PageHeight / 25.4) * 100), (int)
((result1.PageProperties.PageWidth / 25.4) * 100), (int)
((result1.PageProperties.LeftMargin / 25.4) * 100), (int)
((result1.PageProperties.RightMargin / 25.4) * 100), (int)
((result1.PageProperties.TopMargin / 25.4) * 100), (int)
((result1.PageProperties.BottomMargin / 25.4) * 100));
===============
So the /25.4 * 100 can explain the different value we encountered,
however, I still haven't got the reason of this formula(seems an incorrect
unit translation). Anyway, I'm currently consulting some other dev tools
guys on this so as to get some further information on this. I'll update
you whenever I got some new info.
Thanks for your understanding.
Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)