Skip navigation
Currently Being Moderated

Send to Printer operation and Printer Protocol

Sep 5, 2011 3:07 AM

Hello all,

 

I designed a process where it is needed to send a PDF file to 2 different printers (not at the same time). So to simplify the process I defined a XML within the server ( C:\config.xml ) with the information necessary to send the job to the printer, and contains the information that the operation sendToPrinter needs:

 

- Printer Protocol

- Server URI

- Printer Name.

 

So instead of placing the values for this operation, I read the values from the XML file. The problem is, the sendToPrinter operation expects the Printer Protocol as a specific type: PrinterProtocol (obvious heheh). And my variable is String.

 

How can I convert this?

 

Thanks!

 
Replies
  • Currently Being Moderated
    Sep 8, 2011 11:56 AM   in reply to Diego-Silva

    Hi Pal,

     

    Yeah, we're always replying to ourselves when the problem is a little bit off the main road, aren't we? 

     

    Are you back to Brazil already?

     

    Marcos

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points