Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data report Designer

Status
Not open for further replies.

Sam13

Technical User
May 31, 2001
5
US
I'm using the data report designer and the data enviroment for the first time in a project and am unfamiliar in how to do a few things.

1. Is is possible to set the orientation of the report at design time or at run time, I need the report to be in landscape format not portrait.

2. Can the data report be used with an ADO control rather than the data environment? If yes, what properties and events do I need to use ?

3. If I can't use the ado control with the data report, what property of the data environment can I set at runtime using user identified data to create a recordset for the report?

Thanks.
Sam
 
Change the default printer's default page orientation to Landscape in the Printers folder in Windows you can develop in landscape. It's a pretty clunky setup but Datareports aren't the prettiest thing Microsoft has ever done with VB
Then in code you need to set the printer object orientation to landscape, print your report and then set it back to portrait

I'm pretty sure you have to use the dataenvironment.

Here's a link on binding a datareport to a datasource at runtime


Hope this helps

Pete
 
I know it´s kind of late for a reply, but i´m reading this because of the landscape problem (new to vb reports). About the use of ado: since i use a different database each time i HAVE to set the data source in code and I simply set the DataSource property of the report to an ado recordset. It seems to work just fine. My field names are the same every time, but you should be able to set the DataField properties for the controls in code as well.
Code:
    Set objForm.DataSource = rstData

/gny
 
There is a bug in the DataReport which prevents Landscape reports. You will need to upgrade to the latest service pack of Visual Studio.

Chaz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top