ReportPreview settings


03-11-2010, 3:21 AM
hi,
I have a few queries about the reportPreview control (v1.6.1818.0 libs)...

(1) I would like the default mode of the reportPreview control to be "PreviewMode.Layout" - how do I do this?

I tried setting as follows but the assignment was ignored:

this.reportViewer1.PreviewMode = DataDynamics.Reports.Windows.Forms.PreviewMode.Layout;

(2) When viewed in "Layout" mode, the report is still surrounded by a greyish border (see attached picture) and is centred on the screen both horizontally and vertically - I would like the border to be white (i.e. matching the report) and be positioned top left (i.e. like the Microsoft report viewer). Is this possible?

Thanks.

Re: ReportPreview settings


03-15-2010, 2:56 AM
Hello,
(1):
Setting PreviewMode property to PreviewMode.Layout works fine if it is invoked before the report is opened in viewer. I tested it and had no issues with that functionality. Could you please send us the code(or the small application) that can be used to reproduce the problem with ignoring
PreviewMode settings?

(2)
That's not possible at the moment. I've entered a couple of the change requests to implement the desired functionality:
144070 - to allow to control the color of the space around the report page.
144071 - to allow to control the alignment of the report page inside the viewer.

Once the build containing the fixes is available, you'll be notified about that.

Sergey Abakumoff
GrapeCity