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?
Ok... here's what I did:
Used the operation ExecuteScript and wrote a short code to create a variable of type PrinterProtocol.
Done, and working.
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?
Hey buddy! Yes.. indeed heheheheh
Not back yet, still been challenged here around Asia hehehe