-
Dec 27th, 2009, 08:24 PM
#1
Thread Starter
Lively Member
[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
-
Dec 28th, 2009, 01:22 AM
#2
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.
-
Dec 28th, 2009, 01:45 AM
#3
Thread Starter
Lively Member
Re: run time error 8542 : report width is larger than paper width
Originally Posted by dee-u
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.
-
Dec 28th, 2009, 01:56 AM
#4
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?
-
Dec 28th, 2009, 03:04 AM
#5
Thread Starter
Lively Member
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
-
Dec 28th, 2009, 03:06 AM
#6
Re: [RESOLVED] run time error 8542 : report width is larger than paper width
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|