Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[b] Formatted Printing In Dos Mode [/b]

Status
Not open for further replies.

rskomal

Programmer
Feb 2, 2003
13
IN
Hi There
I m using VB6 now and want to print FORMATTED text in DOS mode. It is quite possible to print with Clipper or Foxpro for DOS by using @ row, Col Say command but i dont know how to print this in Vb environment. I think I should use text file for that but i dont know how to place formatted text in that file. Hope you will helpful this time too.

Thanks in anticipation.

 
VB is a little different, as it's Windows based. If it helps, think of it as a lot of DOS screens set next to one another. You can indeed print at different row and col locations on a window if you are so inclined. I would experiment with a VB form on which a RichTextBox control has been placed.

See if that does something like what you want.

HTH

Bob
 
It is quite possible to write VB programs to run from (and within) the console. Through API calls you can even get direct control over the Console Device and have random access to the display, scroll it, and even set text colors.

This is an advanced topic however, and most applications don't warrant the effort. Spending that kind of effort you could create a really nice windowed program instead.
 
Yes, it is quite possible, but as you say not worth the effort. I'm sure the OP would quickly grow frustrated trying to get the equivalent of "@ row, col say" using the VB API to control the console!

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top