Printing from a DOS program in guest with Laser?

Discussions about using Windows guests in VirtualBox.
raceware
Posts: 33
Joined: 19. Aug 2010, 14:08
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: DOS

Printing from a DOS program in guest with Laser?

Post by raceware »

I have Win XP guest set up on my Win 7 Pro 64Bit host. On my guest I use an Old Dos program allot from my XP guest & do alott of printing from it all worked great with several HP deskjet I had even an HP C4600 all in one, could print everything I needed usin "Print Pooling" option under Printer propeties but now I have a Canon MF 4350D all in one
Laserjet & even tried an HP 1006 Laserjet also but all the Laserjets so far I can't get to print from the Dos Program. (First Choice is name of program Dos). I still have Print Pooling selected. Any hints on getting the Laserjets to work? (I am using VB 4.04)

Thanks
Raceware
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: Printing from a DOS program in guest with Laser?

Post by stefan.becker »

There is workaround: Virtual lpt1.

Share the printer on the host.

In Dos use this share with "netuse lpt1 \\host_ip\sharename".

Then DOS-Apps could print to lpt1.
raceware
Posts: 33
Joined: 19. Aug 2010, 14:08
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: DOS

Re: Printing from a DOS program in guest with Laser?

Post by raceware »

Can you elaborate on exactly how I do the Virtual LPT1? Do I simply open a Dos window in my Guest Win Xp & type the command you suggested? Will at that point the line will be embedded so everytime I boot up the line will activate? How exactly do I setup the "Share" with the host from my Guest OS?

Thanks,
Raceware
raceware
Posts: 33
Joined: 19. Aug 2010, 14:08
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: DOS

Re: Printing from a DOS program in guest with Laser?

Post by raceware »

Thanks for the input but when I issued the command in a Dos Window it states"netuse is not a regonized internal or external command". Here's the procedure I did Opened VB & ran Guest OS opened a Dos Window went to C:\ & typed the command
netuse lpt1 \\host_ip\sharename when I got the message . ANy Help is appreciated.

Thanks
Raceware
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: Printing from a DOS program in guest with Laser?

Post by stefan.becker »

Sorry, typo.

"net use" with blank.

net is the command, use a parameter.
raceware
Posts: 33
Joined: 19. Aug 2010, 14:08
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: DOS

Re: Printing from a DOS program in guest with Laser?

Post by raceware »

Back Again! Don't shoot the messenger! I typed the command "net use lpt1\\host_ip\\sharename" now I get the error " network cannot be found". I know I'm not doing something right. Please don't take for granted I know everything. Do I have to create a network in my guest OS & name it then use that name in place of "Sharename"? If so can you give me step by step instructions on how to accomplish this? I certainly don't want to bug some one trying to help me but I'm thick !

Thanks
Again
Raceware
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: Printing from a DOS program in guest with Laser?

Post by stefan.becker »

Sharename means the name of the printer. On the host you must share the printer. Thats the name used here.

And another blank is needed between "lpt1" and "\\host_ip".

And for host-ip choose the ip-adress from the host.
raceware
Posts: 33
Joined: 19. Aug 2010, 14:08
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: DOS

Re: Printing from a DOS program in guest with Laser?

Post by raceware »

Have no idea what I'm doing, I Selected both host & Guest OS to share the printer & named them both CanonMF4320. Looked under "Virtual Host only Network" in "Network & Sharing center" in Win 7 host and retrived a IPv4 Ip address, went in to guest OS Win XP and opened Dos Window to C: & Typed : "net (space) use(space) lpt1(space) \\192.168.56.1\\CanonMF4320" (with out "()" &" "" marks). Then Got "error 66 , Network Resource type is not correct". I was unsure where to get IP address 1), and 2)named both Host & Guest as CanonMF4320, 3) don't know if thats right or nott , or 4)even If I was supposed to create a Network Connection or not! I need specific "Idiot Proof Instructions" exactly where & how in each Host & Guest OS where & how to retrive all this information & embed said info & a copy of "Networking in VB for idiots" instructions. What say ye??????????????????????

Thanks Again & Again & Again!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Raceware
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Printing from a DOS program in guest with Laser?

Post by vbox4me2 »

Only set sharing from the Host, use Bridge network mode, then try the net use from the Guest.
raceware
Posts: 33
Joined: 19. Aug 2010, 14:08
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: DOS

Re: Printing from a DOS program in guest with Laser?

Post by raceware »

Get the same error: "The network resource is not correct". I open VB "Settings" then "Network" selected "Bridge"
Under the Bridged showed a Realtek (nothing other in pull down menu) looked under "Advanced" five other options did not check "cable connected" left advanced at default then started Win XP guest opened dos window then typed:
net use lpt1 \\192.168.56.1\\CanonMF4320 when I got the error. this was all after setting just the host printer to sharing only. Still opened for suggestions? Have I the got the right IP address from the right location?, I know I named the Printer sharing name to CanonMF4320.

Raceware
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: Printing from a DOS program in guest with Laser?

Post by stefan.becker »

You must know the ip-adress from the host. No idea if its correct.
raceware
Posts: 33
Joined: 19. Aug 2010, 14:08
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: DOS

Re: Printing from a DOS program in guest with Laser?

Post by raceware »

I tried to attach a JPG to this post so you can see where I got the IP address from so in your opinion it was the right location or not. Let me know if you can view it or not.

Raceware
Attachments
ipaddress for VB.jpg
ipaddress for VB.jpg (65.06 KiB) Viewed 8739 times
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Printing from a DOS program in guest with Laser?

Post by vbox4me2 »

It looks correct, firewall from the Host off? I'm not sure if windows file and printer sharing works over a Host-only link, Bridge works fine, is windows file and printer sharing installed on the Host under adapter settings ? and ticked for the host-only adapter ?
Post Reply