[RESOLVED] run time error 8542 : report width is larger than paper width-VBForums
Results 1 to 6 of 6

Thread: [RESOLVED] run time error 8542 : report width is larger than paper width

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    86

    Resolved [RESOLVED] run time error 8542 : report width is larger than paper width

    dear all,

    i'd be appreciate if any expert can help me.

    perviously i've installed the system into 3 PCs,

    PC1 is using printer A
    PC2 & PC3 share printer B

    the system works fine in all 3 PCs for few months.. until last week, PC3 popup this error 8542 whenever we click on "Show Datareport" button.

    Code:
    Private Sub btnShowReport_Click()
    
    DataEnvironment1.rsCommand4.Open
    DataEnvironment1.rsCommand4.Requery
    TempoPartData.Refresh
    TempoPartData.Show
    DataEnvironment1.rsCommand4.Close
    End Sub
    1st, i've try to replace the exe but still return same error.
    Then i uninstall and reinstall the system, still same.
    lastly, i tried to fix this problem by adding this line of code before tempopartdata.show, still return error.
    Code:
    TempoPartData.Orientation = rptOrientPortrait

  2. #2
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Candon City, Ilocos Sur, Phils.
    Posts
    10,829

    Re: run time error 8542 : report width is larger than paper width

    What is the default paper size of your default printer? It usually is the cause of such error, DataReport can't show the data since the paper width is smaller.
    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

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    86

    Re: run time error 8542 : report width is larger than paper width

    Quote Originally Posted by dee-u View Post
    What is the default paper size of your default printer? It usually is the cause of such error, DataReport can't show the data since the paper width is smaller.
    the default size should be A4
    however, PC2 dont have problem to show the datareport, while PC2 and PC3 share the same printer.

  4. #4
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Candon City, Ilocos Sur, Phils.
    Posts
    10,829

    Re: run time error 8542 : report width is larger than paper width

    So have you checked the paper size if its the same on all computers?
    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

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Sep 2009
    Posts
    86

    Re: run time error 8542 : report width is larger than paper width

    i've checked and notice that PC2's default printer is a laserjet printer
    while PC3's default printer is a barcode printer.

    after discuss with my superior, we change the default printer and problem solved!

    thanks to dee-u for the tips

  6. #6
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Candon City, Ilocos Sur, Phils.
    Posts
    10,829

    Re: [RESOLVED] run time error 8542 : report width is larger than paper width

    No problem. =)
    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

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.