Results 1 to 4 of 4

Thread: Working With Datareport in VB6

  1. #1

    Thread Starter
    Fanatic Member daimous's Avatar
    Join Date
    Aug 2005
    Posts
    657

    Working With Datareport in VB6

    Hi! how will i make my datareport 'landscape' not 'portrait' with the paper size of A4, when it generate and print reports. thanks in advance!

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Working With Datareport in VB6

    Call it like this, and you can select printer options. Send TRUE for ShowDialog

    object.PrintReport(ShowDialog, Range, PageFrom, PageTo)

    The PrintReport method syntax has these parts:

    Part Description
    object Required. Anobject expression that evaluates to an object in the Applies To list.
    ShowDialog Optional. Aboolean expression that determines if the Print dialog box is shown.
    Range Optional. Sets an integer that determines if all the pages in the report will be executed or a range of pages, as shown in Settings.
    PageFrom Optional. An integer that sets the page from which to start printing.
    PageTo Optional. An integer that sets the page at which to stop printing.

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

    Re: Working With Datareport in VB6

    have you tried...


    VB Code:
    1. DataReport1.Orientation = rptOrientLandscape
    2. DataReport1.Show 1
    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

  4. #4
    Fanatic Member Bombdrop's Avatar
    Join Date
    Apr 2001
    Location
    St Helens, England, UK
    Posts
    667

    Re: Working With Datareport in VB6

    take not to use

    VB Code:
    1. DataReport1.Orientation = rptOrientLandscape

    you need service pack 4 or above.

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