Click to See Complete Forum and Search --> : Solution for DATAREPORT ( Data Report ) in LANDSCAPE Mode


sachinbobde
May 29th, 2001, 01:10 AM
Though little lengthy but, there's one solution for this. I have extracted this solution after fighting with VB6 data report for last 3 months. Though Vb6 data report doesn't allow to print reports in landscape mode (Error= report width is greater that paper width) it has one facility to export report. Exporting reports in .txt or unicode format distorts the shape of report. But exporting report in .html format gives report as we all need it to be. The only thing is that you have to format the report accordingly as will be seen in Internet explorer. Having IE 5.5 will be better option as it has some advantages over it preceding versions. IE 5.5 gives you to print preview the report ( actually the html page) as we see it in data report. It also allows to print report in landscape mode.

Requirements => Internet explorer 5.5 and Windows Milleniun Edition (Windows ME) on which I have experimented.

Friends hope this small experiment may help you. For any suggestions please mail me at
sachinbobde@hotmail.com
sgbobde@nagpur.dot.net.in

Sachin

jn8230
August 1st, 2001, 03:04 PM
Sachin, I was running into this same problem myself. There is an orientation property of the dataraport that can only be set at runtime. You can set it before you open the report as in:
DataReport.Orientation = rptOrientLandScape
DataReport.Show



This will allow you to open the report in Landscape mode

Jason

shripad_nayak
August 26th, 2001, 07:40 PM
Thanks mite, I was looking for that.

I would like to add this. When you use Orientation property you may encounter the following error:
Compiler Error Method or Data member not found.

Install Visual Studio 6.0 Service Pack 4 or later.


--Take the life as it comes--