Results 1 to 5 of 5

Thread: report printing in landscap

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2005
    Posts
    116

    report printing in landscap

    I am using vb6's report and I want to set the report property landscap in printing.any one can help me out.

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: report printing in landscap

    Take a look at this...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: report printing in landscap

    Moved to Reporting section.

  4. #4
    Hyperactive Member vincentg's Avatar
    Join Date
    Jun 2005
    Location
    Chicago IL, USA
    Posts
    261

    Re: report printing in landscap

    I have also some exp on this one... and I dont know if you like my solution.
    VB Data Report Right?
    Try to Search for PageSet.DLL, download it and install in your computer using regsvr32.exe, and try to add it on your reference in you project the -> PageSet

    Then you can use this code (you can add this code in you module)
    VB Code:
    1. Sub SetPrinterOrientation(tnOrientation As Integer)
    2.  
    3. Set gObjPrinter = New PageSet.PrinterControl
    4.  
    5.     Select Case tnOrientation
    6.         Case vbPRORPortrait
    7.             gObjPrinter.ChngOrientationPortrait
    8.         Case vbPRORLandscape
    9.             gObjPrinter.ChngOrientationLandscape
    10.     End Select
    11. End Sub

    before calling the report, you need to set Printer Orientation

    VB Code:
    1. Private Sub cmdPreview_Click()
    2.     SetPrinterOrientation (vbPRORLandscape)  
    3.     '2 values available w/c i think constant in vb vbPRORPortrait & vbPRORLandscape
    4.     rptInventoryStatus.Show
    5. End Sub


  5. #5
    New Member
    Join Date
    Mar 2006
    Posts
    1

    Re: report printing in landscap

    It really worked !!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width