Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to convert a .prn file??????
Message
De
17/07/2000 19:00:10
 
 
À
16/07/2000 05:29:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00392996
Message ID:
00393588
Vues:
15
Hello Neeraj,

I doubt you will have much luck finding a converter.

Far better you try and get the file delivered to you in a different format.

However sometimes I have to write routines that can read reports printed from some ancient system or other.

I usually just create a fox table with just 1 field in it (however that field is 255 characters long)

I then do

APPEND FROM yourfilename.prn SDF

Assuming you have carriage returns in your file this will give you one line in your table for every line in your source file.

From this point on it takes a lot of sweat writing code to strip out spurious characters and finding whatever structure may be in the report.

If you are lucky you end up with reasonable clean data.

Only do it if you have no other way out though. This technique is not highly reccomended :)

good luck
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform