If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > Rpt Width larger than Paper Width Error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Sep 2004
Posts: 8
Rpt Width larger than Paper Width Error

I am new to VB report generation and created a simple rpt that pulls a few fields from an ms access table using rpt designer, but when I ran it I got the message "Report width is larger than the paper width". I then ran a sample report project which came with MS VB called prjNwind from the MS Visual Studio sample directory (located in \Program Files\Microsoft Visual Studio\MSDN98\98VS\1033\Samples\VB98\DATAREPT) and got the same error.

However, when I ran the sample project from one of my other computers, it ran fine.

I have no idea what is causing the different results or how to resolve the problem. Any help would be greatly appreciated! Thanks.
Reply With Quote
  #2 (permalink)  
Old
Registered User
 
Join Date: Jul 2004
Posts: 69
hi there! how are you "showing" your report? is it in landscape orientation with legal size? if yes, use microsoft's Pageset.dll. It's a fix of the said problem you got. You can download it in their site.

http://support.microsoft.com/kb/q198901/

this should fix your problem.
Reply With Quote
  #3 (permalink)  
Old
Registered User
 
Join Date: Sep 2004
Posts: 8
Thumbs up

Thanks very much for your prompt reply. Using the info you provided, I was able to determine that the printer default setting of 4x6" size paper was the source of the problem (my other computer has a printer that defaults to 8.5x11" so did not exhibit the problem). I was able to run the rpt by adjusting paper size manually and using the orientation property mentioned in the fix you referenced. Once I apply the fix I will make the appropriate adjustments to automate settings accordingly. Many thanks again for your help. It pointed me in the right direction and got me back on track quickly!!
Reply With Quote
  #4 (permalink)  
Old
Registered User
 
Join Date: Jul 2004
Posts: 69
No problem dude. Keep posting...good luck in your project.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On