Results 1 to 4 of 4

Thread: how to custom paper size of data report in visual basic 6.0

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    17

    how to custom paper size of data report in visual basic 6.0

    hello
    i am working on a project using visual basic. i have to print a recept which is of 7.6 x 9.8 inch size. by default the paper size it prints is of A4 size page. so how to custom this size using code while printing data report in visual basic 6.0

  2. #2
    Just Married shakti5385's Avatar
    Join Date
    Mar 2006
    Location
    Udaipur,Rajasthan(INDIA)
    Posts
    3,747

    Re: how to custom paper size of data report in visual basic 6.0

    Try to Use crystal report it has this type of facility
    Please go in the reporting section of vbforums for more detail

  3. #3
    PowerPoster Simply Me's Avatar
    Join Date
    Aug 2003
    Posts
    2,732

    Re: how to custom paper size of data report in visual basic 6.0

    if you are going to use crystal report 9 try this one. it's not mine but I saw it here in the forum. its from JerseyKid.

    VB Code:
    1. Private Sub CRViewer91_PrintButtonClicked(UseDefault As Boolean)
    2.   UseDefault = False
    3.  
    4.   'Brings up the print dialog box
    5.   oReport.PrinterSetup Me.hWnd
    6.  
    7.   'If 'Cancel' is selected will cancel print job
    8.   If Err.Number <> 0 Then
    9.     oReport.PrintOut False
    10.   Else
    11.   'Means 'OK' was selected and will print out
    12.     oReport.PrintOut True
    13.   End If
    14. End Sub
    To give is always to be NOBLE...
    To received is always to be BLESSED....
    Each day strive to be NOBLE
    Each day strive to be BLESSED

    If this post has helped you. Please take time to rate it.

    >=|+|=< Simply Me >=|+|=<

    ----------------------------------------
    Connection Strings | Number Only in Textbox | Splash Screen with Progress Bar | Printing to 1/2 of perforated bond paper |
    Freeze 2005 DataGridView Column

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

    Re: how to custom paper size of data report in visual basic 6.0

    Moved to reporting section

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