Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing On Dot Matrix Printer From VFP
Message
From
12/07/2001 07:40:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
11/07/2001 23:21:14
Devrishi Bhogra
Escorts Claas Limited
Faridabad, India
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00529557
Message ID:
00529611
Views:
12
Create a text file with your report.

Send printer codes, followed by this text-file, to the printer, with "???".

To create the text file, many programmers use "@...SAY". Personally, I prefer "?" and "??".

Since text-style reports are a frequent requirement, over the last two years I developed a fairly complete solution, which includes preview in a browser (shows bold and italic!), a class to generate the text file (with methods for detail band, page header, group headers and footers, and more), etc.

Hilmar.

>Hi there!!
>
>When i try to take a printout from my VFP application on DMP (Dot Matrix Printer),printout comes in "Near Letter quality" and its very solow.
>
>Soluitons which i tried....but didn't work
>
>1.) In the printer properties
> Device Options->Print Quality
>
> i set this property to Draft.
>
>2.)
> set printer to name getprinter()
> set device to print
> set print on
> ** i tried this code with or without following line
> @ prow(),0 say chr(27)+chr(120)+chr(0)
>
>
> fl = fopen("tt.txt",10)
> do while !feof(fl)
> lstring = fgets(fl)
> @ prow()+1,0 say lstring
> if allt(lstring)='**'
> eject
> endif
> enddo
> set device to screen
> set print off
>
>
>But if i try to take the printout of any text file using
>
> Run type filename.txt > prn
>
>it works just fine..and fast
>but the problem is , when i try to take the output of a report file using ASCII parameter it filters the special pritner code...even "Page Break"..
>
>So , Please Help....
>
>
>Regards
>
>Sunny
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform