in reply to RE: Re: Print to a printer
in thread Print to a printer

Thanks a lot for the help. The explanation was nice and clear. But I have one more question is that what do you use NET::Printer what exactly does that module do.

Replies are listed 'Best First'.
RE: RE: RE: Re: Print to a printer
by Fastolfe (Vicar) on Nov 02, 2000 at 03:57 UTC
    If a Perl script wishes to interact with a printer on the network (hence Net::Printer) that speaks the Unix standard 'lpd' protocols, this is the module it would use. It's equivalent to some module that would let you use a network or locally installed printer under Windows.

    Again, this is all local to where the script is being run. If the user/system that the script resides has no means to print to an arbitrary printer, a Perl script using this or any other module isn't going to be able to either. This has nothing to do with stuff on the client side.

      thanks a lot for all the help
      thanks a lot for all the help
        I have a question regarding attachments. Will you be able to answer it to me. Thanks How can you send attachments to email. I used sendmail to send emails. I was trying to use MIME::Lite to send attachments but it is giving me an error when i use the attach().
Attachment
by Anonymous Monk on Nov 02, 2000 at 03:51 UTC
    How can you send attachments to email. I used sendmail to send emails. I was trying to use MIME::Lite to send attachments but it is giving me an error when i use the attach().
      That would be a perfectly acceptable way of doing what you're trying to do. Perhaps if you told us what the error was, we could help you.

      If you're not on a Unix system or otherwise don't have the standard "sendmail" program to handle your 'send' request, the MIME::Lite documentation recommends something like this instead:

      MIME::Lite->send('smtp', "smtp.myisp.net", Timeout=>60); $msg->send;
      Otherwise, you're going to have to be a lot more verbose and specific about the problem you're having.