944,100 Members | Top Members by Rank

Ad:
Jun 29th, 2007
0

question from newbie

Expand Post »
hi, i am a newbie...

would anybody please to tell me,
how is the codes, to directly changing windows default printer,
from within visualbasic code,
without poping: windows select printer dialog box

best regards
ndutz
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ndutz is offline Offline
3 posts
since Jun 2007
Jun 29th, 2007
0

Re: question from newbie

Do you wish to change default printer or just use another ? How will program know which printer to pick if you don't put dialog box up ?

If your application changes users default printer without them knowing they could be very annoyed.

Denis
Last edited by DenisOxon; Jun 29th, 2007 at 9:02 pm.
Reputation Points: 22
Solved Threads: 19
Posting Whiz
DenisOxon is offline Offline
345 posts
since Jan 2007
Jun 30th, 2007
0

Re: question from newbie

Look, "Epson Ex-1000" is the default printer for windows in all versions. It is the printer which anybody can use even if they don't physically have any printer installed to see the print preview. Now if you wish to change this printer setting to something else you've to first tell windows to what printer you want to switch on. You can write code to extract all printer names which are currently installed in a combo box. After that you select a printer and change to it. In this case you don't need to display the printer dialog box.
Reputation Points: 30
Solved Threads: 49
Posting Pro
choudhuryshouvi is offline Offline
553 posts
since May 2007
Jun 30th, 2007
0

Re: question from newbie

All your PRinters are listed in the printers collection.

The VB6.0 code would be

Sub Select_A_PRinter()

Set Printer = Printers("Your Printer Name")

End Sub
Reputation Points: 10
Solved Threads: 1
Newbie Poster
shasur is offline Offline
20 posts
since Aug 2006
Jun 30th, 2007
0

Re: question from newbie

Look, "Epson Ex-1000" is the default printer for windows in all versions. .

Which country are you referring to ? We don't get this as default in any version of windows, except maybe Windows 3.0

Please fill me in.

Denis
Reputation Points: 22
Solved Threads: 19
Posting Whiz
DenisOxon is offline Offline
345 posts
since Jan 2007
Jul 1st, 2007
0

Re: question from newbie

thank you...
i try and i get:
runtime error 13
type mismatch
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ndutz is offline Offline
3 posts
since Jun 2007
Jul 1st, 2007
0

Re: question from newbie

Set Printer = Printers("Your Printer Name")

thank you...
i try and i get:
runtime error 13
type mismatch
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ndutz is offline Offline
3 posts
since Jun 2007
Jul 2nd, 2007
0

Re: question from newbie

Click to Expand / Collapse  Quote originally posted by DenisOxon ...
Which country are you referring to ? We don't get this as default in any version of windows, except maybe Windows 3.0

Please fill me in.

Denis

Belonging to some other country than you are won't change windows default printer from "Epson Ex-1000" to something else. It is the universal settings from Microosft which a few people know. You can only use this printer setting to make the print preview option functional while working in some text editors,word processors like notepad,wordpad,Ms-Word,etc. but cannot print anything. Windows doesnot automatically detect and install this printer. To install this printer setting you have to install all associated files from the installation disk of the version of windows which you've installed. To install this printer you can follow these steps :-

Insert the windows installation disk->goto control panel->printer->add new printer->select appropriate port->then from the printer selection screen click Epson from manufactures list and then select Epson Ex-1000 from printers list. After this clicking OK will install all necessary files for this printer onto your computer. Now if you goto print preview option of any text editor such as notepad you can see that option is working. I assume that you should know without installing a printer you cannot use the print preview option within any text editors. This printer setting is recommended for users who donot physically have any printer installed with their machine.

Hope this will clear your idea.

Regards
Shouvik
Reputation Points: 30
Solved Threads: 49
Posting Pro
choudhuryshouvi is offline Offline
553 posts
since May 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: How Can i use Photo field in DataReport
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Help-->SQL Statement in vb6 for getting total of Field





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC