Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 27th, 2006, 05:22 AM
Registered User
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to suresh.cgmohan Send a message via MSN to suresh.cgmohan Send a message via Yahoo to suresh.cgmohan
Default View txt File as DOS Format

Hi Programmers,

I hope all of u agree with me, in this point. that is Word Processors of Windows and DOS are displaying text in different format.

I am working VB 6.
I developed one software that keeping inventory details.

I diaplay the output.txt file in text box(multi line).

It shows like notepad.

the alignment which i am crated in VB Code is working. But it is differently Shown like notepad.

I am need to know - how to see the .txt file as DOS Format(80 Characters per line).

Regards,
Suresh.(New Programmer)

 
Old September 27th, 2006, 06:08 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello

I had one of the same problem in while printing the Sale bill in the dos format (which is used to print the bill faster)

So to my knowledge, the format depends upon the font you use.

For example, open notepad and select the font
to Courier New, then type 'W' (all caps) four times press enter. then type "I" four times. You can easily see that four Ws and four Is equally places (boxed). Now change the font to verdana, and see that one W space is occupied by 3 Is.

This happens between True Type font and Screen font. To make you still clear, Open MS-Word and open font dialog box, above OK button there you can see the description of each font. For Courier New, its same as screen font and printing font, so it means that you get to see it as you design.

I guess i have understood your problem, If not explain it again. Will try to fix in still better way.

So for finally i used courier new for my sale bill that looks as i designed it from the VB code.

hope this helps.


With Regards,
Raghavendra Mudugal
 
Old September 27th, 2006, 07:40 AM
Registered User
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to suresh.cgmohan Send a message via MSN to suresh.cgmohan Send a message via Yahoo to suresh.cgmohan
Default

Hi Raghavendhra,

Thanks for ur valuable info to let me know this info.

Thank you very much for ur precious help.

With Regards,
Suresh.








Similar Threads
Thread Thread Starter Forum Replies Last Post
export to txt format mallick_kuet Crystal Reports 0 January 21st, 2007 02:50 AM
export in txt format mallick_kuet C# 2005 0 January 20th, 2007 06:24 AM
export in txt format mallick_kuet BOOK: Professional Crystal Reports for VS.NET 0 January 20th, 2007 05:22 AM
How to format txt file exported from access table bbqlee Access VBA 1 August 4th, 2006 02:16 PM
save file in csv, txt format in jsp URGENT ernidhi2003 JSP Basics 1 October 14th, 2004 04:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.