Justifying Report on web page

Stimulsoft Reports.NET discussion
Post Reply
LenaB
Posts: 11
Joined: Tue Apr 24, 2007 9:28 am
Location: Montreal canada

Justifying Report on web page

Post by LenaB »

Hi
All the reports show up centered on a web page viewer.
My boss doesn't like that.
How do I get the report to start at the top of the page at all times in the viewer?

Lena
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Justifying Report on web page

Post by Vital »

Please use property ContentAlignment of StiWebViewer.

Thank you.
LenaB
Posts: 11
Joined: Tue Apr 24, 2007 9:28 am
Location: Montreal canada

Justifying Report on web page

Post by LenaB »

as in where?

StiWebViewer1. ??? . ??? = ????

Lena
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Justifying Report on web page

Post by Vital »

Code: Select all

StiWebViewer1.ContentAlignment = StiContentAlignment.Left;
StiWebViewer1.ScrollBarsMode = false;
StiWebViewer1.ShowPageBorders = false;
LenaB
Posts: 11
Joined: Tue Apr 24, 2007 9:28 am
Location: Montreal canada

Justifying Report on web page

Post by LenaB »

When I tried that I get

C:\QCSystem\QCtrans2\OutStandRep2.aspx.vb(380): 'ContentAlignment' is not a member of 'Stimulsoft.Report.Web.StiWebViewer'.

and
C:\QCSystem\QCtrans2\OutStandRep2.aspx.vb(380): Name 'StiContentAlignment' is not declared.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Justifying Report on web page

Post by Vital »

Please add to start of your code:

Code: Select all

using Stimulsoft.Report.Web;
Thank you.
Post Reply