[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2010-04-10T03:09:28-05:00 http://www.petesqbsite.com/phpBB3/app.php/feed/topic/2761 2010-04-05T15:53:47-05:00 2010-04-05T15:53:47-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=20563#p20563 <![CDATA[Printer Problems]]>
To remove the shared network setup just add " /Delete" to the end of the NET USE setup string.

Statistics: Posted by burger2227 — Mon Apr 05, 2010 3:53 pm


]]>
2010-04-05T15:26:51-05:00 2010-04-05T15:26:51-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=20562#p20562 <![CDATA[LPRINT AND XP]]> To Burger2227 Was not aware any addition to first answers. So discovered your code this evening and tried it immediately. IT WORKS PERFECTLY !
This is a great improvement for me. Only issue is to adjust the printer properties each time want to use QBASIC and the must boring is probably to have to set to "text" each time which probably if you let it fixed on it, will make all drawing impossible to print from windows (just a guess)
But this is a very good surprise, and I thank you sincerely.

Statistics: Posted by LEGRAND — Mon Apr 05, 2010 3:26 pm


]]>
2010-04-05T15:42:45-05:00 2008-10-20T20:23:15-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=18186#p18186 <![CDATA[Printer Problems]]>
2. First, find out the name of your computer.
My code finds the COMPUTERNAME for you in Qbasic code!

As for Persistant, I have not found that to be necessary on my XP. After reboot, it works anyway. If you try to do my routine again, I get an error 85.

The only thing keeping the LPRINT command from working is that perhaps the Printer Process box MUST have "Text" as the setting in Windows! For Windows to print something, you may have to change it to LEMF!

Ted

Statistics: Posted by burger2227 — Mon Oct 20, 2008 8:23 pm


]]>
2008-10-17T19:51:23-05:00 2008-10-17T19:51:23-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=18156#p18156 <![CDATA[Printer Problem]]> and FREE!!! You can also print even if the printer is on a network.

There are programs you can buy to allow you to print from DOS but why
PAY when its already part of Windows XP.

1. Open a command prompt.

2. First, find out the name of your computer.

Type: NET USE

3. Second, know the name of the printer you want to print to. You can
get this information from the Control Panel/Printer and Faxes.

3. For my computer I typed this. You have to type this command to the
computer that you want to print from DOS even if that computer is
on a network.

Note: If you print and the computer hangs...then Windows was not
able to successfully connect to that printer. Type the command
again.

Type: NET USE LPT1 \\Dell\HP /Persistent:Yes

\\Dell
Name of the computer. Change this for the name of
your computer. Remember to include the two \\ in
front of your computer name

\HP
Name of the printer. Replace this with the name of
your printer. Only one back-slash.

/Persistent:Yes
The /Persistent:Yes parameter will tell Windows to
reestablish the connection when the system is rebooted.
If the printer is not connected to the computer when
it boots, Windows will usually remember the connection
anyway. Depending on your system's defaults and
security settings, Windows might even ask if you want
to have the printer connection deleted when Windows
can't find the printer anymore.

If everthing works, you should be able to print from within the IDE
environment just by sending your print jobs to LPT1.

At the command prompt you can still print doing it the old way...

c:\type sample.bas > lpt1:
or
c:\type sample.txt > prn
or
c:\dir *.bas > lpt1:

If you encounter any problems, look up how to use NET USE.

Hope this helps...enjoy.

Statistics: Posted by DDastardly71 — Fri Oct 17, 2008 7:51 pm


]]>
2008-09-15T09:20:52-05:00 2008-09-15T09:20:52-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=17910#p17910 <![CDATA[PRINTING]]> Statistics: Posted by LEGRAND — Mon Sep 15, 2008 9:20 am


]]>
2010-04-10T03:09:28-05:00 2008-09-15T03:44:39-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=17907#p17907 <![CDATA[For XP]]>

Code:

CLSCOLOR 11: LOCATE 2, 20: PRINT "XP USB Printer to assign for LPRINT"COLOR 10: LOCATE 3, 4: PRINT "In Control Panel, set the USB printer to Shared with Text Format (not RAW)."Computer$ = ENVIRON$("COMPUTERNAME")  'NT or XP only!SHELL "NET VIEW " + Computer$COLOR 14: INPUT "        Enter the USB Printer's Share Name from above: ", Printer$SHELL "NET USE LPT1 \\" + Computer$ + "\" + Printer$  'send LPT to USBLPRINT "Test of USB Printer use with LPRINT" + CHR$(10) 'linefeedLPRINT CHR$(12) ' form feed


This is my crude routine, but it worked on my XP! You can make a batch file to do the NET USE line once you establish the PC name and Printer Share Name. I call it crude, because it has no error handlers. Also you only need to run this once per Windows session when using LPRINT. I wonder if it could work on a COM port also?

I plan to have the routine create the batch file automatically.

Ted

Statistics: Posted by burger2227 — Mon Sep 15, 2008 3:44 am


]]>
2008-09-14T22:23:15-05:00 2008-09-14T22:23:15-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=17904#p17904 <![CDATA[Printer Problems]]>
I do not remember the command off the top of my head.

Just go search google for DOS USB PRINTER.

I think it has something to do with assigning the LPT1 to use the USB, but I've seen it done, and have done it before ages ago. I just don't remember right now what it was.

If you can't find anything, I'll see if I can find it for you.

Statistics: Posted by w1nt0p — Sun Sep 14, 2008 10:23 pm


]]>
2008-09-14T09:38:10-05:00 2008-09-14T09:38:10-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=17893#p17893 <![CDATA[Printer Problems]]> Statistics: Posted by LEGRAND — Sun Sep 14, 2008 9:38 am


]]>
2008-09-08T15:37:47-05:00 2008-09-08T15:37:47-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=17871#p17871 <![CDATA[Printer Problems]]>
Ted

Statistics: Posted by burger2227 — Mon Sep 08, 2008 3:37 pm


]]>
2008-09-08T13:41:05-05:00 2008-09-08T13:41:05-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=17870#p17870 <![CDATA[Printer Problems]]>
When you are writing your program in Qbasic, you normally save it. This creates a file with a .BAS extension.

Get into Notepad, "open" this .BAS file, and then use "print" to print it.

Of course you have to give Notepad the right path to get to the file.

Regards..... Moneo

Statistics: Posted by moneo — Mon Sep 08, 2008 1:41 pm


]]>
2008-09-08T11:27:48-05:00 2008-09-08T11:27:48-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=17866#p17866 <![CDATA[XP?]]>
The printers must be connected to LPT1 to use LPRINT. Some may still not work correctly. Qbasic cannot use the USB ports directly! There are some other programs that can help for USB printers. Most are not free!

Try creating text files with PRINT # and opening them in Notepad from the SHELL command line. You can print it from there. This way you can choose to print or not while creating your code.

NT and XP limit access to ports. Try using PortTalk (Free) to open a parallel port. Read the documentation in PortTalk to install correctly!

Ted

Statistics: Posted by burger2227 — Mon Sep 08, 2008 11:27 am


]]>
2008-09-08T08:05:59-05:00 2008-09-08T08:05:59-05:00 http://www.petesqbsite.com/phpBB3/viewtopic.php?p=17865#p17865 <![CDATA[Printer Problems]]> I cannot print my QBASIC programs. I an running QBASIC in the following envireonment. Windows EP Profesional and my printers are HP Color LazerJet 1600 or a HP Officejet 5610 ALL- in - One. I have tried both HP and Microsoft without sucess.
Your help will be appreciated.

Statistics: Posted by Ron Cridlan — Mon Sep 08, 2008 8:05 am


]]>