jaw36 Posted July 25, 2007 Report Share Posted July 25, 2007 Is it possible to show 2 different graphs (not sharing the same X axis) on one chart object. The reason I ask, is that our users would like certain graphs to be standard graphs, and 2 specific graphs will always be printed together. They would like one print button to print both charts on one page. Link to comment Share on other sites More sharing options...
Frank Posted July 26, 2007 Report Share Posted July 26, 2007 No. A chart object contains only one chart. You can write JavaScript to print both charts. For example: var chartImage1 = MM_findObj("Chart1");var chartImage2 = MM_findObj("Chart2"); var imgSrc1 = chartImage1.src; var imgSrc2 = chartImage2.src; var w = window.open ('', '_blank', 'menubar=0,location=0,status=0,resizable=0,scrollbars=0,titlebar=0,status=0,toolbar=0,linkbar=0,width=1,height=1'); var html = '<HEAD><TITLE>Chart</TITLE></HEAD><HTML><BODY ONLOAD="if (window.print) { setTimeout(\'window.close()\', 1); window.print(); }">'; html += '<IMG SRC="' + imgSrc1 + '">'; html += '<IMG SRC="' + imgSrc2 + '">'; html += '<\/BODY><\/HTML>'; w.document.open(); w.document.write(html); w.document.close(); Link to comment Share on other sites More sharing options...
jaw36 Posted July 27, 2007 Author Report Share Posted July 27, 2007 That's the answer I was expecting, but not the one I was hoping for. Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.