English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am working in vb,where for Printing some documents i use FoxPro with Draft Font,but when it is printed in windows its font changes to Times new roman.Please send me a solution for me at the earliest.

2006-10-05 19:32:12 · 2 answers · asked by N.Parvathi Yamuna 1 in Computers & Internet Hardware Printers

2 answers

Windows normally does not print in draft mode. u will have to use a program to print the report if u want dos based printing and u should not use report writer.

small code to print as a dos text file from a dbf file called customer.dbf

public nrou &&(row position)
nrou = 0 &&(first time 0)

set device to file customer.txt &&(output is spolled to a file called customer.txt)

sele a
use customer shared alias customer in 0
go top
do while !eof()
@ nrou,000 say custid
@ nrou,010 say custname
@ nrou,050 say custadd1
@ nrou,092 say custcity
nrou = nrou + 1
sele customer
if !eof()
skip
endif
set device to screen
!type customer.txt > prn
enddo

if u want any guidance/clarrification feel free to contact me at lakshmiteja@rediffmail.com or phone me at 9945965075

if this is correct answer, please mark it
thanks

2006-10-05 19:50:18 · answer #1 · answered by lakshmi r 4 · 0 0

have you checked the printer's font setting?

2006-10-06 02:41:31 · answer #2 · answered by buttar506 4 · 0 0

fedest.com, questions and answers