DataReport Page orientation...

How do I change the page orientation?
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

Éric MoreauConnect With a Mentor Senior .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.
É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.

Never miss a deadline with

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

É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!
HunterKillerAuthor Commented:
Sorry about my ignorance, but how can I bind the dll to my project ?
HunterKillerAuthor Commented:
Thank you !
All Courses

From novice to tech pro — start learning today.