Does anyone know how to print a data report in landscape from code? Using syntax similar to datareport1.printreport. But I would like it to default to landscape every time.
I'm sure it's not a property within a property. Just for grins, make sure Orientation is a property when you do
Code:
DataReport1.
in your code. Orientation should be listed in the "List Properties/Methods" list that pops up.
I have tested this, with success, on my own Data Reports built inside of Visual Basic. There was a bug with Visual Basic resetting itself to Portrait Orientation at one point; however, if you're using the latest Service Pack, you won't have that problem. If you're not running the latest SP, I would suggest downloading it.
I don't have that property listed at all. Maybe the latest service pack will have it. Unless there are other Data Report components I need to reference.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.