how to custom paper size of data report in visual basic 6.0-VBForums
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,746

    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,713

    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
    Super Moderator Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,334

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

    Moved to reporting section
    Please use [Code]your code goes in here[/Code] tags when posting code.
    When you have received an answer to your question, please mark it as resolved using the Thread Tools menu.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    I dont answer coding questions via PM or EMail. Please post a thread in the appropriate forum section.

    Creating A Wizard In VB.NET
    Paging A Recordset
    What is wrong with using On Error Resume Next
    Good Article: Language Enhancements In Visual Basic 2010
    Upgrading VB6 Code To VB.NET
    Microsoft MVP 2005/2006/2007/2008/2009/2010/2011/2012/Defrocked

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.