printing
Re: printing
You cant. This has already been answered, dont spam the board.guest wrote:i have a graphic using a few "line" commands. how can i send that graphic to my printer
I have left this dump.
I would not say it can't be done...
The easiest way is to convert the graphics to a standard format (bmp, gif) in QB then open it with Windows paint to print it. You could use too a DOS screen capture program. Plasma has one of them in his site. It is not garanteeed to work in all screen modes.
Pure Dos was able fifteen years ago to dump a graphical screen to an IBM-Proprinter compatible printer if you loaded GRAPHICS.COM before. Unforunately no present printer supports the IBM-Proprinter command and GRAPHICS.COM does not work in the present DOS boxes inside Windows
If your printer is able to print text from DOS programs you could implement a graphics driver for it, provided you find the graphics command list for the printer. It would work only with your brand of printer...
The easiest way is to convert the graphics to a standard format (bmp, gif) in QB then open it with Windows paint to print it. You could use too a DOS screen capture program. Plasma has one of them in his site. It is not garanteeed to work in all screen modes.
Pure Dos was able fifteen years ago to dump a graphical screen to an IBM-Proprinter compatible printer if you loaded GRAPHICS.COM before. Unforunately no present printer supports the IBM-Proprinter command and GRAPHICS.COM does not work in the present DOS boxes inside Windows
If your printer is able to print text from DOS programs you could implement a graphics driver for it, provided you find the graphics command list for the printer. It would work only with your brand of printer...
Ray,
I posted this a week ago. Maybe it can help you.
*****
I posted this a week ago. Maybe it can help you.
Try it...... regarding line drawing characters.
In WORD 2003 of Windws XP or WORD of Windows 2000, you can see line drawing characters by doing the following:
1) Print to a file with a different file extension, like .FIL
2) Get into WORD, and open the file.
3) Word presents a small window called "File Conversion". In this window, select "OEM United States" from the menu.
4) Word will now show your text with the proper line drawing characters.
5) You can now print this Word file.
*****
-
- Veteran
- Posts: 109
- Joined: Thu Feb 10, 2005 12:38 pm
Oh, oh, I think I messed up, sorry. I was talking about printing out "line drawing characters", but you guys are talking about graphics on the screen produced by the line statement. Two totally different things.guest wrote:thats a good idea how do you make the graphic a file in qbasic?
The line statement outputs only to the screen. I have no idea how to get the contents of the screen onto a file, and whether that file could be printed properly. Years ago I did see some "screen capture" utilities, but don't know if they're still available.
*****Moneo*****
Try this screen grabber to get the screen to a file, then you can print it thru a
graphics editor
http://www.phatcode.net/downloads.php?id=194
graphics editor
http://www.phatcode.net/downloads.php?id=194
LPRINT
Lprint DOES send data to the printer, but only text such as the contents of string or numeric constants or expressions, likeDoesn't the LPRINT command send commands to the printer?
Code: Select all
LPRINT "Hello"
LPRINT num+6
--- Zim ---
--- Time flies like an arrow, but fruit flies like a banana ---
--- Time flies like an arrow, but fruit flies like a banana ---
Re: LPRINT
In dos PrnScrn only worked if you loaded GRAPHICS.COM at the DOS start. The windows screen capture does not work in fullscreen modes.z!re wrote: He's trying to print graphics, which in the case of DOS is easy by pressing the PrtScrn key. In windows I thought this key just caused a screen capture which could be pasted (Ctrl+V) into any compliant app... no?
Re: LPRINT
I never said that...Antoni wrote:In dos PrnScrn only worked if you loaded GRAPHICS.COM at the DOS start. The windows screen capture does not work in fullscreen modes.z!re wrote: He's trying to print graphics, which in the case of DOS is easy by pressing the PrtScrn key. In windows I thought this key just caused a screen capture which could be pasted (Ctrl+V) into any compliant app... no?
I have left this dump.
- The Awakened
- Veteran
- Posts: 144
- Joined: Sun Aug 07, 2005 1:51 am
Re: LPRINT
It works for me. I just hit the Print Screen button, go into Paint, Edit --> Paste, and pow, it's there.Antoni wrote:In dos PrnScrn only worked if you loaded GRAPHICS.COM at the DOS start. The windows screen capture does not work in fullscreen modes.z!re wrote: He's trying to print graphics, which in the case of DOS is easy by pressing the PrtScrn key. In windows I thought this key just caused a screen capture which could be pasted (Ctrl+V) into any compliant app... no?
"Sorry for beating you up with a baseball bat Julian, but I DID think that you were a samsquanch."
- The Walrus
- Veteran
- Posts: 87
- Joined: Fri Apr 01, 2005 7:19 am
- Location: Denmark
- Contact:
Re: PrtScrn
In the VERY old days of DOS, PrtScrn worked without GRAPHICS.COM loaded, but that was back when CGA was the highest resolution (640x200). As QuickBASIC began to support higher resolutions, such as EGA (640x350) you needed to have GRAPHICS.COM loaded. That was a boon to us back then. We could actually print an EGA screen with just the press of a button! Imagine!Antoni wrote: In dos PrnScrn only worked if you loaded GRAPHICS.COM at the DOS start...
--- Zim ---
--- Time flies like an arrow, but fruit flies like a banana ---
--- Time flies like an arrow, but fruit flies like a banana ---