DataReport Page orientation...

How do I change the page orientation?
LVL 1
HunterKillerAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
É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.
0
 
Éric MoreauSenior .Net ConsultantCommented:
You need PageSet.exe from the MS support online site (see article Q198901 from the support.microsoft.com).
0
 
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.

Thanks
0
Never miss a deadline with monday.com

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

From novice to tech pro — start learning today.