Answer the question
In order to leave comments, you need to log in
How to print a document from a 1C server through web services?
Greetings. There is a web service on 1C. Printing from 1C client applications works. I would like to work with 1C through soap. Including printing.
Everything works except printing. In Google, on request "printing from 1C" is scarce information.
How can I send a document for printing from the 1C server?
Answer the question
In order to leave comments, you need to log in
There is nothing magical about printing - everything is quite simple.
Your main problem is that you yourself do not know what you want!
If you have some strange idea to use the 1C server as a print server, then you should make a new web service that receives binary document data for printing, document type (to know how to print it) and secondary settings (number of copies, orientation, etc.). The web service receives binary data, writes it to a temporary file, and sends some kind of print program to it, specifying the print settings.
Very strange behavior... Isn't it easier to make a VPN to a network printer and print directly?
But I have a suspicion that you have a certain number of documents in your database (accounting or trade) (possibly uploaded via a web service) and you want to send a command to print them. This is a completely different problem statement. You can solve it as follows: pass the document type (you can use a string representation of metadata, but you can do anything - the main thing is that you figure it out yourself), document number (preferably with a date, since usually numbering in accounting starts anew from the new year, and for some documents the counter is reset every month) and print settings (see above). In the web service handler on the 1C side, find the document using the transmitted information and call the print function (in typical configurations, there is a print mode directly to the printer by default without displaying a preview).
But I have a suspicion that you have a certain number of documents in your database (accounting or trade) (possibly uploaded via a web service) and you want to send a command to print them.
Golden answer Dmitry
I've been looking for a command for 2 years to print the last document by number via web services on the server
To send the command from the mobile platform 1C to the server.
I'll try as you wrote
Help for a monetary reward))) very important
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question