DataReport Page orientation...

How do I change the page orientation?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Éric MoreauSenior .Net ConsultantCommented:
You need PageSet.exe from the MS support online site (see article Q198901 from the
HunterKillerAuthor Commented:
Well, as I am a starter im VB, I couldn't use that Activex Dll, because I don't even know what is a Activex Dll. So, I'll need some more explanations to get it going.

Éric MoreauSenior .Net ConsultantCommented:
You have the code sample at the bottom of this article:
   Dim obj As PageSet.PrinterControl   Private Sub Command1_Click()
      On Error GoTo errorhandler:      Set obj = New PrinterControl
      obj.ChngOrientationLandscape      DataReport1.Show
      DataReport1.PrintReport False, rptRangeFromTo, 1, 1      Exit Sub
   errorhandler:       MsgBox Err.Description       obj.ReSetOrientation
   End Sub   Private Sub Form_Unload(Cancel As Integer)
      obj.ReSetOrientation 'This resets the printer to portrait.   End Sub

If you want to print landscape using the Data Report, you have no other choice for now than this DLL since it is a bug that it is still not corrected even after SP3!
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

HunterKillerAuthor Commented:
Sorry about my ignorance, but how can I bind the dll to my project ?
Éric MoreauSenior .Net ConsultantCommented:
Install the DLL as said in the article then go to the Project->References menu item and add it.

Once the reference is done, you will be able to use the DLL in your application and the Package & Deployment Wizard will automatically distribute it and register it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
HunterKillerAuthor Commented:
Thank you !
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.