insight974
asked on
Printing from ASP
How can I print a text file from ASP?
Anthony's correct, the answer to your question isn't to complicated...but why answer it if i don't think i'll get the points anyway??
~ MastaLlama ~
~ MastaLlama ~
<a href="javascript:window.pr int();">Pr int</a>
zombeen is right, that's the easiest way..it won't always work but it's close enough. There's no way in ASP to execute special print commando's so don't go hoping for that, just accept zombeen's comment and off you go...
Max.
Max.
ASKER
Thank you for the answers. I'm sorry about the delay in the responses. I was making a mistake when giving the points, I was thinking I was closing the questions and that wasn't happening. I'm really very sorry. And in one case, I haven't received any response. Thanks to acperkins for letting me know, I really feel bad about it. I have just reviewed the previous questions and closed them. Sorry.
Related to this question, what I need is to print a text file that was saved in the hard drive. Thank you
Related to this question, what I need is to print a text file that was saved in the hard drive. Thank you
Use the FSO to open the file as a formated string, then pass that to the print() function.
But if this .txt file is on the users hard-drive, you will have problems... the only other way around it is to upload the .txt to the server, then run it through the print() and then delete the file.
But if this .txt file is on the users hard-drive, you will have problems... the only other way around it is to upload the .txt to the server, then run it through the print() and then delete the file.
ASKER
Let me explain more. I have a variable with a string in the asp page, what I will need is to print that string (to the default printer). As I don't have an idea on how to do it I was thinking on creating a temp txt file and send the file to print but I'm open to other ideas.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This question appears to have been abandoned. I will invite a Moderator to close this question if there's no reply from you after seven days.
Suggestion
<points to mgfranz>
hongjun
Suggestion
<points to mgfranz>
hongjun
Per recommendation, force-accepted.
Netminder
CS Moderator
Netminder
CS Moderator
Help Desk System Date: 03/07/2002 07:00AM PST
https://www.experts-exchange.com/questions/20274436/Help-Desk-System.html
Granulated security Date: 06/13/2002 11:40AM PST
https://www.experts-exchange.com/questions/20311369/Granulated-security.html
URL Date: 06/27/2002 06:57PM PST
https://www.experts-exchange.com/questions/20317178/URL.html
(the above question shold be deleted as there are no contributions)
Authentication without asking for user name and password Date: 04/05/2002 06:44AM PST
https://www.experts-exchange.com/questions/20285302/Authentication-without-asking-for-user-name-and-password.html
Thanks,
Anthony