How to print from Web services

20 pts.
Tags:
AS/400
HTML file
Web services
I am using webservices to communicate with a third party provider. The provider is sending me a HTML file to the AS400 that I need to print. The file is graphical with company logo. How can I send this file directly to a windows printer?

Answer Wiki

Thanks. We'll let you know when a new response is added.

If it is coming as an HTML file and you can open it in a browser, then you should just be able to go to File and either click on Print or Print Preview and see how it looks before you hit the Print button.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    I'm not aware of any way to send a .HTML file to any printer, Windows or otherwise, and to have it print anything but the .HTML source unless the printer itself has a rendering capability built into it. (I suppose some such printers exist; I just haven't run into any.)   HTML needs to be rendered. For the most part, rendering engines are built into browsers; so browsers are what are capable of printing .HTML files (other than as source/text). There are exceptions such as some word processing programs since there are open-source rendering engines; but those are generally intended for GUI environments.   There might be various exceptions.   One that looks promising is the Pdfcrowd (Print HTML to PDF Java) API. Although it doesn't print, it does generate a .PDF that might be more easily sent to a printer. I haven't seen the API work in an AS/400 server environment, so it's just a possibility, and there might be other similar functions out on the internet..   Or the .HTML might be placed in a shared directory. A remote command might then be sent to Windows to print the document using Internet Explorer or other browser by passing command-line parameters.   Batch or background printing of .HTML on Windows doesn't seem to be a very popular (i.e., well liked) topic. Searches show plenty of links, but few searchers seem to locate satisfying answers. Trying the same on a non-graphical back-end server seems doubly troublesome.   Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following