is there any way to print print html file as landscape orientation directly without showing preview dialog?

In my project, I need to print out multiple reports generated as html file. some should be landscape, some shoul be the other orientation.

I searched, and we could use a webbrowser and load the html file, then print it. However, I could not set the orientaion in the code. some say that we can use css to control this, but I could not make it work.

anyone did this and has an example?


thanks

bear