Setting page layout in data report in vb6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • drsvvr
    New Member
    • Feb 2008
    • 5

    Setting page layout in data report in vb6

    Hi everyone!,

    Please help me to do the setting page layout in data report. i dont think the default setting in data report is portrait, my project is need a landscape report, but i dont know how to do. Please help. Thank you.
  • werks
    New Member
    • Dec 2007
    • 218

    #2
    Originally posted by drsvvr
    Hi everyone!,

    Please help me to do the setting page layout in data report. i dont think the default setting in data report is portrait, my project is need a landscape report, but i dont know how to do. Please help. Thank you.
    To specify the orientation (Landscape or Portrait) at runtime, use the orientation property:
    DataReport1.Ori entation = rptOrientLandsc ape

    It works on VB 6 (SP6)

    --
    Kenneth
    "Better Than Yesterday"

    Comment

    • drsvvr
      New Member
      • Feb 2008
      • 5

      #3
      Hi, Thanks for your help.


      Originally posted by werks
      To specify the orientation (Landscape or Portrait) at runtime, use the orientation property:
      DataReport1.Ori entation = rptOrientLandsc ape

      It works on VB 6 (SP6)

      --
      Kenneth
      "Better Than Yesterday"

      Comment

      • drsvvr
        New Member
        • Feb 2008
        • 5

        #4
        this my code but i cannot do the orientation, please help me to include my code.
        '************** *************** *************** **
        Private Sub cmdPrintPrev_Cl ick()
        DE1.rsPRMasterl ist_Grouping.Fi lter = ""
        If Option4.Value = True Then
        DE1.rsPRMasterl ist_Grouping.Fi lter = ""
        End If
        R_PR.Show
        End Sub
        '************** *************** *************** **
        Private Sub Form_Load()
        txtdate.Text = Format$(Date, "m/dd/yy")
        Centerform Me
        Option4.Value = True
        Call GroupNo
        FilterPRCode
        End Sub
        '************** *************** *************** **
        Private Sub Option4_Click()
        If Option4.Value = True Then

        DataCombo3.Visi ble = True
        End If
        End Sub

        "Error : "Report width is larger than the paper width."

        Comment

        • 9815402440
          New Member
          • Oct 2007
          • 180

          #5
          hi
          you can use orrientation method only if you have vb6 sp5 or higher installed on your computer. you can download it from http://msdn2.microsoft .com/en-us/vstudio/aa718363.aspx
          if you dont want to do that then download PageSet.dll from microsoft.com
          but pageSet.dll dont change orientation on network printer. it can be used for the printer that is attached to the local computer.
          regards
          manpreet singh dhillon hoshiarpur

          Comment

          Working...