home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 8,861 of 10,840   
   Bruce Adams to All   
   Problem with Printer.Orientation   
   07 Oct 04 15:43:11   
   
   From: bruceadams@spammenot.oywcortland.com   
      
   I am using VB6 SP6. I have an application that prints charts. Specifically,   
   it prints line charts of plant process information nightly. The code is a   
   mix of API calls and Printer methods. I am currently migrating to a new PC   
   running XP. The charting application is hanging on a single line of code:   
      
   Printer.Orientation = vbPRORLandscape   
      
   It throws an error '484', "Problem getting information from the printer.   
   Make sure printer is set up correctly."   
      
   I am setting other printer parameters without problems. I can GET   
   orientation no problem:   
      
   pOldOrientation = Printer.Orientation   
      
    If I comment out just the "Printer.Orientation = vbPRORLandscape" line, it   
   works fine, just in the wrong orientation. This application has worked fine   
   in Win98, Win98SE and Win2K. I have been Googling this for hours and can't   
   find a solution. Has anyone here experienced this? If yes, how did you solve   
   it?   
      
   TIA,   
   Bruce   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca