C
ccg
I am trying to print a file from an ASP script but haven't been able
to find any way of making this happen.
I have an EPL (Eltron Thermal Printer language) file that is being
generated from the script and I want a way to print this file. An EPL
file is basically printed the same way as a postscript PRN would be
printed. From a command prompt I can type:
copy label.EPL LPT1
and get the thing printed. I want to be able to do this same thing
within ASP.
I have tried creating a batch file and calling that from ASP using the
code at http://www.aspfaq.com/show.asp?id=2059 but that didn't seem to
work. I did give permissions to CMD and Command but it's still not
working. Is that because "copy" is part of Command? I also tried
DynuExec but that didn't do the trick either.
Is there any way to copy a file to LPT1 from within an ASP script at
all? How about JavaScript? I'm ok with any kind of creative
solutions...it doesn't have to be elegant since this will only be used
as an internal application.
Thanks in advance for any advice or suggestions.
Corbin G
email me at my first name and first letter of last name at the google
mail service domain
to find any way of making this happen.
I have an EPL (Eltron Thermal Printer language) file that is being
generated from the script and I want a way to print this file. An EPL
file is basically printed the same way as a postscript PRN would be
printed. From a command prompt I can type:
copy label.EPL LPT1
and get the thing printed. I want to be able to do this same thing
within ASP.
I have tried creating a batch file and calling that from ASP using the
code at http://www.aspfaq.com/show.asp?id=2059 but that didn't seem to
work. I did give permissions to CMD and Command but it's still not
working. Is that because "copy" is part of Command? I also tried
DynuExec but that didn't do the trick either.
Is there any way to copy a file to LPT1 from within an ASP script at
all? How about JavaScript? I'm ok with any kind of creative
solutions...it doesn't have to be elegant since this will only be used
as an internal application.
Thanks in advance for any advice or suggestions.
Corbin G
email me at my first name and first letter of last name at the google
mail service domain