|
Subject:
|
View txt File as DOS Format
|
|
Posted By:
|
suresh.cgmohan
|
Post Date:
|
9/27/2006 5:22:09 AM
|
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)
|
|
Reply By:
|
Raghavendra_Mudugal
|
Reply Date:
|
9/27/2006 6:08:14 AM
|
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
|
|
Reply By:
|
suresh.cgmohan
|
Reply Date:
|
9/27/2006 7:40:19 AM
|
Hi Raghavendhra,
Thanks for ur valuable info to let me know this info.
Thank you very much for ur precious help.
With Regards, Suresh.
|