Implemented diagram printing from the web browser.