473,387 Members | 1,624 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Report viewer Page margins problem

Hi All

I have created rdlc files and when I load them into Report Viewer at run
time they appear OK

If I click on 'Print layout' button on Report Viewer the view again appears
acceptable

If I click on 'Page setup' button the margins left & right are not what I
set on the rdlc file at design time (1.5cm) they are 5.9mm

If I click OK on the 'Page Setup' form the Report margins change to the
margins from 'Page setup'

If I open ''Page setup' again the margin settings are now less than
previously set and clicking OK results in the report margins changing again
What am I missing??
Regards
Steve
Jun 10 '06 #1
7 21696
Further to the previous post

How can I centre the Report in the Report Viewer

Currently when I run the program the Report is left aligned in the Report
Viewer

I would like to have the Report Viewer wider than the actual report and
centred
Regards
Steve
"steve" <ga*****@newsgroups.nospam> wrote in message
news:ut**************@TK2MSFTNGP04.phx.gbl...
Hi All

I have created rdlc files and when I load them into Report Viewer at run
time they appear OK

If I click on 'Print layout' button on Report Viewer the view again
appears acceptable

If I click on 'Page setup' button the margins left & right are not what I
set on the rdlc file at design time (1.5cm) they are 5.9mm

If I click OK on the 'Page Setup' form the Report margins change to the
margins from 'Page setup'

If I open ''Page setup' again the margin settings are now less than
previously set and clicking OK results in the report margins changing
again
What am I missing??
Regards
Steve

Jun 10 '06 #2
Steve,

I see that Steven is answering your questions about Report Viewer.
As advice stay in the same messagethread, now it will normally takes more
than 24 hours to reply you (as he sees this) while if you had replied him
direct in the thread where he is helping you for sure would have answered
you in those 24 hours (on normal working days).

As well do we in general not like it in this newsgroup if somebody opens new
messagethreads accoording to another question already askes, we start than
again while most of the information is already given.

Cor

"steve" <ga*****@newsgroups.nospam> schreef in bericht
news:ut**************@TK2MSFTNGP04.phx.gbl...
Hi All

I have created rdlc files and when I load them into Report Viewer at run
time they appear OK

If I click on 'Print layout' button on Report Viewer the view again
appears acceptable

If I click on 'Page setup' button the margins left & right are not what I
set on the rdlc file at design time (1.5cm) they are 5.9mm

If I click OK on the 'Page Setup' form the Report margins change to the
margins from 'Page setup'

If I open ''Page setup' again the margin settings are now less than
previously set and clicking OK results in the report margins changing
again
What am I missing??
Regards
Steve

Jun 10 '06 #3
Hi Cor

Thanks for the advice

Regards
Steve
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message
news:Ol**************@TK2MSFTNGP04.phx.gbl...
Steve,

I see that Steven is answering your questions about Report Viewer.
As advice stay in the same messagethread, now it will normally takes more
than 24 hours to reply you (as he sees this) while if you had replied him
direct in the thread where he is helping you for sure would have answered
you in those 24 hours (on normal working days).

As well do we in general not like it in this newsgroup if somebody opens
new messagethreads accoording to another question already askes, we start
than again while most of the information is already given.

Cor

"steve" <ga*****@newsgroups.nospam> schreef in bericht
news:ut**************@TK2MSFTNGP04.phx.gbl...
Hi All

I have created rdlc files and when I load them into Report Viewer at run
time they appear OK

If I click on 'Print layout' button on Report Viewer the view again
appears acceptable

If I click on 'Page setup' button the margins left & right are not what I
set on the rdlc file at design time (1.5cm) they are 5.9mm

If I click OK on the 'Page Setup' form the Report margins change to the
margins from 'Page setup'

If I open ''Page setup' again the margin settings are now less than
previously set and clicking OK results in the report margins changing
again
What am I missing??
Regards
Steve


Jun 10 '06 #4
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.)

Jun 12 '06 #5
Hi Steve,

Sorry for keeping you waiting. Currently I'm still waiting for some update
from our product team's guys. Just post this message you let you know that
we're still focus on this issue.

Thanks for your understanding and patience.

Regards,

Steven Cheng
Microsoft MSDN Online Support Lead
==================================================

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

Jun 15 '06 #6
Hi Steve,

Sorry for reply to you so late. We have reported this issue to our product
group and we're still investigating it. Thank you for your understanding
and patience.

Regards,
Walter Wang
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.

Jun 20 '06 #7
Hi Steve,

We have confirmed this is an issue of Visual Studio 2005. We have filed it
in our database and hopefully it will be fixed in Visual Studio 2005 SP1.

If this is an urgent or critical issue in your product development, I would
recommend you contact CSS (Customer Support and Service) to open a regular
support incident, so that you can request a hotfix on this issue. You can
refer to this newsgroup thread when contacting CSS and include me in the
email thread when you interact with our support engineers. I will be happy
to provide more details on this issue to the support engineer to expediate
the issue resolution process.

You may contact MSDN representatives to submit your incident online or
through phone:
http://msdn.microsoft.com/subscripti...t/default.aspx
As an MSDN Subscriber, you are entitled to receive up to four support
incidents depending on your subscription level. But since this is a
confirmed product issue, the incident will be free.

Please feel free to post here if anything is unclear.

Regards,
Walter Wang
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.

Jun 22 '06 #8

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

Similar topics

2
by: JIM.H. | last post by:
Hello, I embedded SQL Reporting services report viewer in my asp.net application and when I say Debug->Start it works fine, however if I run my application in another machine report object does...
3
by: Chris Botha | last post by:
I have a Report Viewer control on a Web page. I want the control to size automatically as the Web page sizes, so I've set the control's width property to 90% and the height property to 90% as well....
0
by: Ralf | last post by:
My customer would like for the page to display with a wider data area. As it is, it only shows the data running about 3/4 the way across the browser. He would like it to reach further across b/c...
1
by: monskie | last post by:
Hello to all, I have a problem which could be trivial to you guys. This concerns opening several crystal reports on the a crystal viewer on an ASPX page by calling window.open. My...
7
by: steve | last post by:
Hi All I need to change text in a Report Viewer document at runtime It is just the heading I want to change to match what the user has chosen as the Report to view How do I access the...
4
by: nicomp | last post by:
VS 2005: I created a report and I added it to a report viewer on a web page. When I view the page in my browser I can see a little sliver of what might be the report on the left edge of the report...
0
by: John Smith | last post by:
Hello, I am developing a VB.NET 2003 application that will use lots of Crystal Reports. Sometimes the users will preview a report in a Crystal report viewer, and sometimes they will send the...
0
by: David C. Barber | last post by:
How can I determine if a report in the Crystal Report Viewer on an ASP page has been printed by the user? It's important to know the difference between someone just viewing a report, and actually...
0
by: David C. Barber | last post by:
How can I determine if a report in the Crystal Report Viewer on an ASP page has been printed by the user? It's important to know the difference between someone just viewing a report, and actually...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.