Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Special characters
Message
De
14/04/1999 01:54:13
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00208033
Message ID:
00208098
Vues:
25
>The fastest way to print reports on dot-matrix printers is sending output to a File (REPORT FORM filename.frx TO FILE ASCII)and then copy the file.txt to printer.
>
>My big problems is that I use some special characters like "ñáé", but it output others characters.
>
>1- Cetins gave me This soluction
>
>report form myreport to file myText ASCII
>hd=fopen("mytext.txt",12)
>lnSize = fseek(hd,0,2)
>=fseek(hd,0,0)
>lcText = fread(hd, lnSize)
>=fseek(hd,0,0)
>=fwrite(hd, ansitooem(lcText),lnSize)
>=fclose(hd)
>
>2- I tried using a Generic/text only printer, it did not work.
>
>3- I tried with RUN COPY /B FILE.TXT TO LPT1:, it did no work.
Hi Plinio,
Me again :) What part is not working ? With generic/text only if the printer is a network printer you should capture a port. You are going to do a DOS style print.
After that :
set headings off
set print on
* Any special print codes here
type file.txt to printer
set print off
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform