msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Printer Selection '98 Vs 2000

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise
Author Message
Bill



Joined: 04 Oct 2007
Posts: 1

PostPosted: Tue Sep 09, 2003 2:27 pm    Post subject: Printer Selection '98 Vs 2000 Reply with quote

The following code works as expected when running on a
win '98 system but not at all when running on a Win 2000
system.

Dim PrtName as Printer

For Each PrtName In Printers
If PrtName.DeviceName = "Receipt" Then
Set Printer = PrtName
Exit For
End If
Next

In Win '98, any printer.print statements will now print to
the printer named 'Receipt' in the printers folder.
However, in Win '2000, not only will nothing print, but
when attempting to print a test page from the printer
properties dialog, the printer will not print the test
page. Before trying to select the printer through the
above code the printer test page would print.

Does anyone know why there is a difference between the two
operating systems and what the fix would be for the
problem?

I am developing in VB 6.0

Thank you for your input

Bill

Archived from group: microsoft>public>vb>enterprise
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group