I use Geoserver, Openlayers, Extjs and GeoExt to build an app.
I am trying to get vector layer on Google map printed with pop up a Print dialog, I tried :
var targetElement = Ext.getCmp('mapPanel');
var myWindow = window.open('', '', 'width=600,height=500');
myWindow.document.write('<html><head>');
myWindow.document.write('<title>' + 'Title' + '</title>');
myWindow.document.write('</head><body>');
myWindow.document.write(targetElement.body.dom.innerHTML);
myWindow.document.write('</body></html>');
myWindow.print();
it works fine except that Vector layer were not printed. I got Google map only. How I can do that ?