Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing TXT Files
Message
 
 
À
05/03/2001 20:08:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00481744
Message ID:
00482727
Vues:
7
>Hi!
>
>Thanks for the reply.
>
>>I finally understood your problem. You want to print "Print images", not the normal text files, right? I believe we use some dll for this purpose. My colleague found this dll somewhere. I can check the info for you, if you're interested.
>
>No, I just want to print the txt files from outside my App. on an NT Network and would like to direct it to a specific printer on the NT Network.
>
>I am also interested in the "Print images" as well and if you can check it out for me, that will be great.
>
>Thanks.
>
>Sarosh

Hi Sarosh,

My colleague uses an fll for printing "Print Image" files. I haven't checked this yet in details. This is the file, which was accompanied with this fll, it contains an info about the author. I would recommend you to contact him directly by the e-mail. I don't know, is it a free or commercial product.
This is the file:
===================
This Zip file contains two fll files and this text file.

RawPrint.Fll is a add on library to allow you to send a text file
including printer control characters to a print queue in raw format.

There are two files here : RawPrint3.Fll was compiled using the API
that comes with VFP3.0b, RawPrint5.Fll was compiled using the API
that comes with VFP5.0a.

To use this routine follow the following steps:

Use SET PRINTER TO, SET PRINTER ON etc to print to a file.
Use GETPRINTER() to get the name of the printer to print to.

Use something like the following code.

SET LIBRARY TO RawPrintx.fll ADDITIVE
Success=RAWPRINT(mPrinterName, mFileName)

After it has executed Success will contain True or False
Unfortunately I have not yet put in detailed error messages.
In any case the only things that could be wrong are :
1. The printer you specified does not exist or cannot be accessed.
2. The file you specified does not exist or cannot be opened for read.

If you need to contact me for any questions/suggestions email me at
jermp@pixie.co.za

Hope you find this little tool useful.... I certainly have.

Jeremy Pointer
Pointer Computer Support.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform