
DataReport and landscape printing
Hi Frederik!
Quote:
> How can I set my printerOrientation of a datareport ?
> I 've tried to set the Printer object to Landscape but this does not change
> the Orientation for my datareport.
> The error I get is that the reportwidth is greater than th paperwidth.
> When I change my printer settings in the control panel to landscape my
> report prints fine.
The datareport is quite nice, but this bug suxx hard...
When printing a datareport, it only makes use of the actual printer
settings
of your standard printer. So if you want to print it to a different
printer
than your standard printer OR set a different page orientation, you have
to
adjust the values of your printer.
Instead of adding some more methods and properties to the datareport
(since setting
page orientation and printer works fine from the datareport preview),
they offer
a DLL as workaround on their site. Search for "Pageset.dll" on the
Microsoft site.
This solution suxx, since it changes the default printer values and you
have to set them
back after printing your report. BTW, when using pageset.dll on NT, the
user needs to have
administrative rights to change the default printer settings. [arghh...]
MICROS~1 rulezz... :(
greetings
Christoph Brylka