Skip to Content
0
Former Member
Apr 28, 2009 at 12:19 PM

Printing in Landscape format

40 Views

Hi, I had create my report, I set in landscape mode his layout:

- right click un report, Design >Print SetUp >Landscape [i set the printer's driver???]

- in my Behind Code of asp.net page I write the follw code:

'istanza del report

rpt = New ReportDocument()

'LANDSCAPE

rpt.PrintOptions.PaperOrientation = PaperOrientation.Landscape

Dim stampa As New cls_EXTRA_REPORT_MANAGER

rpt.SetDataSource(stampa.Elenco(IDE_COD_GRU, IDE_CO.......))

RPT_EXTRA_REPORT.ReportSource = rpt

RPT_EXTRA_REPORT.DataBind()

Question, why in VS .Net I see the report in Landscape mode, I print it, the result it's ok; why if the website is run, i see the report in landscape mode ed when I print it the result on my printer is in Portrait???

Thank for the help.....

I develop whit VS.Net 2005 adn the Crystal Report embeded....

Lanfra